WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix rombios compile

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix rombios compile
From: John Levon <john.levon@xxxxxxx>
Date: Wed, 11 Mar 2009 18:48:57 -0700
Delivery-date: Wed, 11 Mar 2009 19:01:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User John Levon <john.levon@xxxxxxx>
# Date 1236822520 25200
# Node ID c59d87e8a9709eeea87b81bf5846a33ba3987d41
# Parent  5c365f6d394e67d0ea5b9a30bd02fa5f1a3c0dbd
Fix rombios compile

__STRING() is Linux-specific

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/tools/firmware/rombios/32bit/pmm.c 
b/tools/firmware/rombios/32bit/pmm.c
--- a/tools/firmware/rombios/32bit/pmm.c
+++ b/tools/firmware/rombios/32bit/pmm.c
@@ -71,10 +71,12 @@
 
 #define DEBUG_PMM 0
 
+#define stringify(a) #a
+
 #define ASSERT(_expr, _action)                                  \
     if (!(_expr)) {                                             \
         printf("ASSERTION FAIL: %s %s:%d %s()\n",               \
-               __STRING(_expr), __FILE__, __LINE__, __func__);  \
+               stringify(_expr), __FILE__, __LINE__, __func__); \
         _action;                                                \
     } else
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix rombios compile, John Levon <=