On Thu, 2011-12-08 at 16:26 -0800, Wey-Yi Guy wrote: > + case IWL_TM_CMD_APP2DEV_GET_DEVICE_ID: > + bus_get_hw_id(bus(priv), buf, sizeof(buf)); > + ptr = buf; > + strsep(&ptr, ":"); > + sscanf(strsep(&ptr, ":"), "%x", &num); > + sscanf(strsep(&ptr, ":"), "%x", &devid); This is kinda ugly too ... sorry, should've seen it earlier. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html