if (sscanf(location, "%03d%c%02d#%d", &rack, &type, &slot, &slab) != 4) 
if (sn_hwperf_location_to_bpos(location, &rack, &bay, &slot, &slab)) 
static int sn_hwperf_geoid_to_cnode(char *location){	int cnode;	geoid_t geoid;	moduleid_t module_id;	char type;	int rack, slot, slab;	int this_rack, this_slot, this_slab;	if (sscanf(location, "%03d%c%02d#%d", &rack, &type, &slot, &slab) != 4)		return -1;	for (cnode = 0; cnode < numionodes; cnode++) {		geoid = cnodeid_get_geoid(cnode);		module_id = geo_module(geoid);		this_rack = MODULE_GET_RACK(module_id);		this_slot = MODULE_GET_BPOS(module_id);		this_slab = geo_slab(geoid);		if (rack == this_rack && slot == this_slot && slab == this_slab)			break;	}	return cnode < numionodes ? cnode : -1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4a5c13c7eb0d55bfd2cf3100c55f1e3d8df37576/sn_hwperf.c/buggy/arch/ia64/sn/kernel/sn2/sn_hwperf.c