We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559048d commit 6ff4cd1Copy full SHA for 6ff4cd1
include/linux/string_choices.h
@@ -48,6 +48,12 @@ static inline const char *str_up_down(bool v)
48
}
49
#define str_down_up(v) str_up_down(!(v))
50
51
+static inline const char *str_true_false(bool v)
52
+{
53
+ return v ? "true" : "false";
54
+}
55
+#define str_false_true(v) str_true_false(!(v))
56
+
57
/**
58
* str_plural - Return the simple pluralization based on English counts
59
* @num: Number used for deciding pluralization
0 commit comments