summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike McQuaid <mike@mikemcquaid.com>2010-04-19 20:04:28 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-12-04 01:42:41 +0100
commit2366423e9795f7bd7e8f7e0f0be7418bf81c5152 (patch)
treea914cba0b3bb682191c34473ead17d81871158b8 /tools
parentb3fa6eff0dafc733e1c842859883cd5de8c456b6 (diff)
downloaddbus-2366423e9795f7bd7e8f7e0f0be7418bf81c5152.tar.gz
Fix PROFILE_TIMED_FORMAT printf warning on OSX.
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-monitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c
index d20faa52..3779368a 100644
--- a/tools/dbus-monitor.c
+++ b/tools/dbus-monitor.c
@@ -95,7 +95,11 @@ monitor_filter_func (DBusConnection *connection,
return DBUS_HANDLER_RESULT_HANDLED;
}
+#ifdef __APPLE__
+#define PROFILE_TIMED_FORMAT "%s\t%lu\t%d"
+#else
#define PROFILE_TIMED_FORMAT "%s\t%lu\t%lu"
+#endif
#define TRAP_NULL_STRING(str) ((str) ? (str) : "<none>")
typedef enum