mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-15 14:44:41 +08:00
system/adb: fix build warning
adb_banner.c:60:47: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
c9223afe7e
commit
ddf9a7a2de
@ -57,7 +57,8 @@ int adb_fill_connect_data(char *buf, size_t bufsize)
|
||||
{
|
||||
/* FIXME only keep first 4 bytes */
|
||||
|
||||
len = snprintf(buf, remaining, "device:%x:", *(uint32_t *)board_id);
|
||||
len = snprintf(buf, remaining,
|
||||
"device:%" PRIx32 ":", *(uint32_t *)board_id);
|
||||
}
|
||||
#else
|
||||
len = snprintf(buf, remaining, "device:" CONFIG_ADBD_DEVICE_ID ":");
|
||||
|
Loading…
x
Reference in New Issue
Block a user