From 2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 18 Oct 2017 16:55:08 +1100 Subject: Replace FDT_VERSION() with stringify() The FDT_VERSION() and _FDT_VERSION() macros don't really have anything specific to do with the fdt version. Rather, they're the common CPP "stringify" idiom. Move to util.h and rename to stringify() to reflect this. Signed-off-by: David Gibson --- util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index ad5f411..ea62715 100644 --- a/util.h +++ b/util.h @@ -35,6 +35,9 @@ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#define stringify(s) stringify_(s) +#define stringify_(s) #s + static inline void NORETURN PRINTF(1, 2) die(const char *str, ...) { va_list ap; -- cgit v1.1