aboutsummaryrefslogtreecommitdiff
path: root/hw/spapr.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2012-03-29 08:39:45 +1100
committerAndreas Färber <afaerber@suse.de>2012-04-15 17:07:19 +0200
commitd9599c9205089805cd6ef55985beeb06aef0c819 (patch)
tree1ba69c910f5ecc71b15b56dbfb2cde8369c88c2d /hw/spapr.h
parent52d631dcc70144b6ce8293db78cd6de635331c83 (diff)
pseries: Clean up hcall_dprintf() debugging messages
The pseries machine code has a number of debug messages for debugging PAPR hypercalls, dependent on DEBUG_SPAPR_HCALLS. This patch cleans these messages up a bit, by adding __func__ to the hcall_dprintf() macro and simplifying up a number of the individual messages accordingly. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/spapr.h')
-rw-r--r--hw/spapr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/spapr.h b/hw/spapr.h
index 11160b02da..654a7a8a34 100644
--- a/hw/spapr.h
+++ b/hw/spapr.h
@@ -272,7 +272,7 @@ extern sPAPREnvironment *spapr;
#ifdef DEBUG_SPAPR_HCALLS
#define hcall_dprintf(fmt, ...) \
- do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
+ do { fprintf(stderr, "%s: " fmt, __func__, ## __VA_ARGS__); } while (0)
#else
#define hcall_dprintf(fmt, ...) \
do { } while (0)