From ff7efed144758dfa57c7cb158d2c0906ebced8fe Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 3 Jan 2014 21:55:20 -0400 Subject: [PATCH] attrib: Fix sprintf() format specification Fixes clang error: src/attrib-server.c:916:26: error: format specifies type 'unsigned char' but the argument has type 'uint16_t' (aka 'unsigned short') [-Werror,-Wformat] --- src/attrib-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attrib-server.c b/src/attrib-server.c index a6f1066ed..a7ee55d16 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -913,7 +913,7 @@ static uint16_t write_value(struct gatt_channel *channel, uint16_t handle, g_key_file_load_from_file(key_file, filename, 0, NULL); sprintf(group, "%hu", handle); - sprintf(value, "%hhX", cccval); + sprintf(value, "%hX", cccval); g_key_file_set_string(key_file, group, "Value", value); data = g_key_file_to_data(key_file, &length, NULL); -- 2.47.3