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:
makejian 2024-03-19 10:40:43 +08:00 committed by Petro Karashchenko
parent c9223afe7e
commit ddf9a7a2de

View File

@ -57,7 +57,8 @@ int adb_fill_connect_data(char *buf, size_t bufsize)
{ {
/* FIXME only keep first 4 bytes */ /* 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 #else
len = snprintf(buf, remaining, "device:" CONFIG_ADBD_DEVICE_ID ":"); len = snprintf(buf, remaining, "device:" CONFIG_ADBD_DEVICE_ID ":");