From: Uwe Hermann Date: Thu, 15 Jun 2017 15:52:55 +0000 (+0200) Subject: session.c: Fix a compiler warning on Mac OS X. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=23e806c21e6e01999163c892635c6dea9d788daa;p=libsigrokdecode.git 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__) ^~~~~~~~~~~ --- 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;