ia64/xen-unstable

changeset 19338:55652fa65974

rombios: __STRING() is Linux-specific

Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 12 11:12:43 2009 +0000 (2009-03-12)
parents fd1bbce5d533
children 8ecf3ecc888e
files tools/firmware/rombios/32bit/pmm.c
line diff
     1.1 --- a/tools/firmware/rombios/32bit/pmm.c	Thu Mar 12 11:10:22 2009 +0000
     1.2 +++ b/tools/firmware/rombios/32bit/pmm.c	Thu Mar 12 11:12:43 2009 +0000
     1.3 @@ -71,10 +71,13 @@
     1.4  
     1.5  #define DEBUG_PMM 0
     1.6  
     1.7 +#define __stringify(a) #a
     1.8 +#define stringify(a) __stringify(a)
     1.9 +
    1.10  #define ASSERT(_expr, _action)                                  \
    1.11      if (!(_expr)) {                                             \
    1.12          printf("ASSERTION FAIL: %s %s:%d %s()\n",               \
    1.13 -               __STRING(_expr), __FILE__, __LINE__, __func__);  \
    1.14 +               stringify(_expr), __FILE__, __LINE__, __func__); \
    1.15          _action;                                                \
    1.16      } else
    1.17