summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-22 16:17:22 +0700
committerhathach <[email protected]>2024-04-22 16:17:22 +0700
commitc097c85dcf8e0ef3ea052c146c5f514101827251 (patch)
tree1a0956149ddd6f9967ced1ef2609ab2afa3c9a2d /examples/host/bare_api/src
parent62331f02070bdb1bec2890885008e9f88b06bdb6 (diff)
fix print lu format warnings with clang
Diffstat (limited to 'examples/host/bare_api/src')
-rw-r--r--examples/host/bare_api/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c
index 14725996d..940840a30 100644
--- a/examples/host/bare_api/src/main.c
+++ b/examples/host/bare_api/src/main.c
@@ -420,5 +420,5 @@ static void print_utf16(uint16_t *temp_buf, size_t buf_len) {
_convert_utf16le_to_utf8(temp_buf + 1, utf16_len, (uint8_t *) temp_buf, sizeof(uint16_t) * buf_len);
((uint8_t*) temp_buf)[utf8_len] = '\0';
- printf((char*)temp_buf);
+ printf("%s", (char*)temp_buf);
}