summaryrefslogtreecommitdiff
path: root/libwmc
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-19 18:48:26 -0600
committerDan Williams <dcbw@redhat.com>2012-01-19 18:48:26 -0600
commitd519f3e364804d1dbf103e5caef31dc5942a26fe (patch)
tree91a5cb98523a725be513ca8217e97d15adb6740c /libwmc
parent337f4b2372412abeec2e7de15d4f31dacf73df52 (diff)
wmc: fix stringification of wmc_xxx_if_fail() macros
Actually reading about preprocessor concatenation and stringification helps.
Diffstat (limited to 'libwmc')
-rw-r--r--libwmc/src/errors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libwmc/src/errors.h b/libwmc/src/errors.h
index 5ad22c1a..9d5aba04 100644
--- a/libwmc/src/errors.h
+++ b/libwmc/src/errors.h
@@ -45,7 +45,7 @@ enum {
#define wmc_return_if_fail(e) \
{ \
if (!(e)) { \
- fprintf (stderr, "failed: ##e##\n"); \
+ fprintf (stderr, "failed: " #e "\n"); \
return; \
} \
}
@@ -53,7 +53,7 @@ enum {
#define wmc_return_val_if_fail(e, v) \
{ \
if (!(e)) { \
- fprintf (stderr, "failed: ##e##\n"); \
+ fprintf (stderr, "failed: " #e "\n"); \
return v; \
} \
}