]> sigrok.org Git - libsigrokdecode.git/commitdiff
session.c: Fix a compiler warning on Mac OS X.
authorUwe Hermann <redacted>
Thu, 15 Jun 2017 15:52:55 +0000 (17:52 +0200)
committerUwe Hermann <redacted>
Thu, 15 Jun 2017 15:52:55 +0000 (17:52 +0200)
  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__)
                                                ^~~~~~~~~~~

session.c

index 128d2240301e8de52eb788a14cf8f4fffb35f8b7..14484504ce2fe9974cf707e14d822693b8331b67 100644 (file)
--- 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;