]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Use g_strerror() in favor of strerror().
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index b191f0caa2715c921ad81b26668c888f8eda7d27..e20705833a2d41a40bec65ddd45898c3e15e3665 100644 (file)
--- a/show.c
+++ b/show.c
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <glib.h>
 #include <string.h>
 #include "sigrok-cli.h"
@@ -658,7 +659,7 @@ void show_dev_detail(void)
                                        if ((srmqfi = sr_key_info_get(SR_KEY_MQFLAGS, mqflags & mask)))
                                                printf("/%s", srmqfi->id);
                                        else
-                                               printf("/%ld", mqflags & mask);
+                                               printf("/%" PRIu64, mqflags & mask);
                                }
                                if (mq == cur_mq && mqflags == cur_mqflags)
                                        printf(" (current)");