chiark / gitweb /
libsystemd-bus: true/false instead of yes/no in msg dump
[elogind.git] / src / shared / util.h
index dd51e8930639efe0993c098aecb3ee4009238b3c..1d178260cbe2d8e702fe98afebd268736448ab9c 100644 (file)
@@ -92,6 +92,10 @@ static inline const char* yes_no(bool b) {
         return b ? "yes" : "no";
 }
 
+static inline const char* true_false(bool b) {
+        return b ? "true" : "false";
+}
+
 static inline const char* strempty(const char *s) {
         return s ? s : "";
 }