Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From be40b3f11460cf495bbbef45692e7763afda0c2b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 14 Sep 2017 17:56:31 -0700 |
| 4 | Subject: [PATCH] ipmidirect: Replace __STRING |
| 5 | |
| 6 | __STRING is not universally available e.g. |
| 7 | musl does not define it |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | plugins/ipmidirect/t/test.h | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/plugins/ipmidirect/t/test.h b/plugins/ipmidirect/t/test.h |
| 17 | index 8d71381..978d5ff 100644 |
| 18 | --- a/plugins/ipmidirect/t/test.h |
| 19 | +++ b/plugins/ipmidirect/t/test.h |
| 20 | @@ -22,7 +22,7 @@ TestFunction( const char *str, const char *file, int line, bool expr ) |
| 21 | } |
| 22 | |
| 23 | |
| 24 | -#define Test(expr) TestFunction( __STRING(expr), __FILE__, __LINE__, expr ) |
| 25 | +#define Test(expr) TestFunction( #expr, __FILE__, __LINE__, expr ) |
| 26 | |
| 27 | |
| 28 | static int |
| 29 | -- |
| 30 | 2.14.1 |
| 31 | |