diff options
| author | hathach <[email protected]> | 2025-10-14 17:33:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-14 17:33:56 +0700 |
| commit | 0a2b6e77da336e7fa579f194cb16a7160d5dab02 (patch) | |
| tree | f0308e166209e21abacd20f38f2a3f04584fb8eb /examples/host/device_info/src | |
| parent | a5fde08285a10a87a1f374913dfe7edfafbe383d (diff) | |
more warnings fix
Diffstat (limited to 'examples/host/device_info/src')
| -rw-r--r-- | examples/host/device_info/src/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/host/device_info/src/main.c b/examples/host/device_info/src/main.c index 419806551..f71702efc 100644 --- a/examples/host/device_info/src/main.c +++ b/examples/host/device_info/src/main.c @@ -171,9 +171,7 @@ void tuh_mount_cb(uint8_t daddr) { printf("\r\n"); printf(" iSerialNumber %u ", desc.device.iSerialNumber); - printf((char*)desc.serial); // serial is already to UTF-8 - printf("\r\n"); - + printf("%s\r\n", (char*)desc.serial); // serial is already to UTF-8 printf(" bNumConfigurations %u\r\n", desc.device.bNumConfigurations); } |
