summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinter Wang <wente.wang@nxp.com>2016-09-22 11:03:43 +0800
committerWinter Wang <wente.wang@nxp.com>2016-09-22 11:14:38 +0800
commit503017ae2f874e49fb20299365bd1ab202040922 (patch)
treeb773ae259c8cfec554e6da215d77b25386834265
parent5249e804483a8c3b7807d8bbb7371308be9f2dea (diff)
downloadu-boot-imx-503017ae2f874e49fb20299365bd1ab202040922.zip
u-boot-imx-503017ae2f874e49fb20299365bd1ab202040922.tar.gz
u-boot-imx-503017ae2f874e49fb20299365bd1ab202040922.tar.bz2
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 <wente.wang@nxp.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
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 */