chiark / gitweb /
basic: nicer assert messages
[elogind.git] / src / libelogind / sd-bus / bus-internal.h
index e0d7c9e..b4ec380 100644 (file)
@@ -396,6 +396,6 @@ int bus_maybe_reply_error(sd_bus_message *m, int r, sd_bus_error *error);
 
 #define bus_assert_return(expr, r, error)                               \
         do {                                                            \
-                if (!assert_log(expr))                                  \
+                if (!assert_log(expr, #expr))                           \
                         return sd_bus_error_set_errno(error, r);        \
         } while (false)