ChangeSet 1.1807.56.26, 2004/08/06 15:28:47-07:00, johnpol@2ka.mipt.ru [PATCH] w1: Changed printing format for slave names. %llx -> %012llx %x -> %02x Signed-off-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman drivers/w1/w1.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/w1/w1.c b/drivers/w1/w1.c --- a/drivers/w1/w1.c 2004-08-23 11:04:08 -07:00 +++ b/drivers/w1/w1.c 2004-08-23 11:04:08 -07:00 @@ -319,11 +319,11 @@ sl->dev.release = &w1_slave_release; snprintf(&sl->dev.bus_id[0], sizeof(sl->dev.bus_id), - "%x-%llx", + "%02x-%012llx", (unsigned int) sl->reg_num.family, (unsigned long long) sl->reg_num.id); snprintf (&sl->name[0], sizeof(sl->name), - "%x-%llx", + "%02x-%012llx", (unsigned int) sl->reg_num.family, (unsigned long long) sl->reg_num.id);