From 503017ae2f874e49fb20299365bd1ab202040922 Mon Sep 17 00:00:00 2001 From: Winter Wang Date: Thu, 22 Sep 2016 11:03:43 +0800 Subject: MA-8763 match fastboot and adb serial number Align the fastboot serialno springf format with kernel boot cmdline, which is "%08x%08x". Signed-off-by: Winter Wang --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 4615cef..89b5f24 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -1556,7 +1556,7 @@ void fastboot_setup(void) char serial[17]; get_board_serial(&serialnr); - sprintf(serial, "%u%u", serialnr.high, serialnr.low); + sprintf(serial, "%08x%08x", serialnr.high, serialnr.low); g_dnl_set_serialnumber(serial); /*execute board relevant initilizations for preparing fastboot */ -- cgit v1.1