From: David Bremner Date: Thu, 22 Sep 2016 11:11:42 +0000 (-0300) Subject: test: fix printf format X-Git-Tag: 0.23_rc0~10 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=1d4812fd616dbabb11eed0f3718fa7827d69355f test: fix printf format notmuch_status_t is an integer type, printing it as a string is a very bad idea. --- 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); } }