Johan Hedberg <johan.hedberg@xxxxxxxxx> writes: >> Why can't all this be replaced with >> >> static void print_bt_uuid(struct seq_file *f, u8 *uuid) >> { >> seq_printf(f, "%pUl\n", uuid); >> } >> >> ? > > I don't think there's any reason assuming that there are no unaligned > access considerations (which I pointed out in my other reply). I wasn't > aware of printk having such a nice extension to the usual format > specifiers (and neither was Gustavo as it seems). Thanks for making us > aware of it! lib/vsprintf.c:uuid_string() will only access "uuid" byte-by-byte so alignment shouldn't be a problem. Bjørn -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html