summaryrefslogtreecommitdiff
path: root/sim/common/hw-properties.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-16 20:58:53 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-16 20:58:53 +0000
commit6d519a4606b939572bb085e43822caa7fe8316e7 (patch)
tree23472d85f5f80b10c241c27e9d4da0f68b99557a /sim/common/hw-properties.c
parentbbb0eef6998678547990f792068fc5a8d3286fa9 (diff)
downloadbinutils-gdb-6d519a4606b939572bb085e43822caa7fe8316e7.tar.gz
sim: avoid TRACE redefine warnings
The common code sets up an autoconf option --enable-sim-trace which adds -DTRACE= to CPPFLAGS. This causes warnings in the building of some files that declare a local TRACE() helper macro. So punt it from hw-ports.c (since it isn't actually used) and convert hw-properties.c to HW_TRACE().
Diffstat (limited to 'sim/common/hw-properties.c')
-rw-r--r--sim/common/hw-properties.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/sim/common/hw-properties.c b/sim/common/hw-properties.c
index 3166e42dd80..018a84c3046 100644
--- a/sim/common/hw-properties.c
+++ b/sim/common/hw-properties.c
@@ -33,8 +33,6 @@
#endif
#endif
-#define TRACE(A,B)
-
/* property entries */
struct hw_property_data {
@@ -418,9 +416,7 @@ hw_find_ihandle_runtime_property (struct hw *me,
ihandle_runtime_property_spec *ihandle)
{
struct hw_property_data *entry = find_property_data (me, property);
- TRACE (trace_devices,
- ("hw_find_ihandle_runtime_property(me=0x%lx, property=%s)\n",
- (long)me, property));
+ HW_TRACE ((me, "hw_find_ihandle_runtime_property(property=%s)\n", property));
if (entry == NULL)
hw_abort (me, "property \"%s\" not found", property);
if (entry->property->type != ihandle_property
@@ -492,9 +488,7 @@ hw_find_integer_property (struct hw *me,
{
const struct hw_property *node;
signed_cell integer;
- TRACE (trace_devices,
- ("hw_find_integer(me=0x%lx, property=%s)\n",
- (long)me, property));
+ HW_TRACE ((me, "hw_find_integer(property=%s)\n", property));
node = hw_find_property (me, property);
if (node == NULL)
hw_abort (me, "property \"%s\" not found", property);
@@ -514,9 +508,7 @@ hw_find_integer_array_property (struct hw *me,
const struct hw_property *node;
int sizeof_integer = sizeof (*integer);
signed_cell *cell;
- TRACE (trace_devices,
- ("hw_find_integer(me=0x%lx, property=%s)\n",
- (long)me, property));
+ HW_TRACE ((me, "hw_find_integer(property=%s)\n", property));
/* check things sane */
node = hw_find_property (me, property);
@@ -886,9 +878,7 @@ hw_add_duplicate_property (struct hw *me,
const struct hw_property *original)
{
struct hw_property_data *master;
- TRACE (trace_devices,
- ("hw_add_duplicate_property(me=0x%lx, property=%s, ...)\n",
- (long)me, property));
+ HW_TRACE ((me, "hw_add_duplicate_property(property=%s, ...)\n", property));
if (original->disposition != permenant_object)
hw_abort (me, "Can only duplicate permenant objects");
/* find the original's master */