projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a1032
)
test: fix printf format
author
David Bremner
<david@tethera.net>
Thu, 22 Sep 2016 11:11:42 +0000
(08:11 -0300)
committer
David Bremner
<david@tethera.net>
Thu, 22 Sep 2016 11:11:42 +0000
(08:11 -0300)
notmuch_status_t is an integer type, printing it as a string is a very
bad idea.
test/notmuch-test.h
patch
|
blob
|
history
diff --git
a/test/notmuch-test.h
b/test/notmuch-test.h
index d39febbe8f2fe910191d98146a610f0272e6d592..45d03d67540a795540da7287e1212d460b6289af 100644
(file)
--- 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);
}
}