From 1d4812fd616dbabb11eed0f3718fa7827d69355f Mon Sep 17 00:00:00 2001 From: David Bremner Date: Thu, 22 Sep 2016 08:11:42 -0300 Subject: [PATCH] test: fix printf format notmuch_status_t is an integer type, printing it as a string is a very bad idea. --- test/notmuch-test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/notmuch-test.h b/test/notmuch-test.h index d39febbe..45d03d67 100644 --- a/test/notmuch-test.h +++ b/test/notmuch-test.h @@ -7,7 +7,7 @@ inline static void expect0(int line, notmuch_status_t ret) { if (ret) { - fprintf (stderr, "line %d: %s\n", line, ret); + fprintf (stderr, "line %d: %d\n", line, ret); exit (1); } }