summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-06-15 17:52:55 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-06-15 17:52:55 +0200
commit23e806c21e6e01999163c892635c6dea9d788daa (patch)
tree8d5911ae9f9be6301f83c1730b90916c62fdfe4a
parentd9a77d2e35f7d5fde1f5c4033e04e3676e25fdd9 (diff)
downloadlibsigrokdecode-23e806c21e6e01999163c892635c6dea9d788daa.tar.gz
libsigrokdecode-23e806c21e6e01999163c892635c6dea9d788daa.zip
session.c: Fix a compiler warning on Mac OS X.
session.c:203:22: warning: format specifies type 'unsigned long long' but the argument has type 'guint64' (aka 'unsigned long') [-Wformat] sess->session_id, g_variant_get_uint64(data)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ libsigrokdecode-internal.h:103:44: note: expanded from macro 'srd_dbg' #define srd_dbg(...) srd_log(SRD_LOG_DBG, __VA_ARGS__) ^~~~~~~~~~~
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 128d224..1448450 100644
--- a/session.c
+++ b/session.c
@@ -199,7 +199,7 @@ SRD_API int srd_session_metadata_set(struct srd_session *sess, int key,
return SRD_ERR_ARG;
}
- srd_dbg("Setting session %d samplerate to %"PRIu64".",
+ srd_dbg("Setting session %d samplerate to %"G_GUINT64_FORMAT".",
sess->session_id, g_variant_get_uint64(data));
ret = SRD_OK;