$NetBSD: patch-ba,v 1.2 2012/08/01 17:52:22 drochner Exp $ --- tools/dbus-monitor.c.orig 2012-07-26 17:37:48.000000000 +0000 +++ tools/dbus-monitor.c @@ -107,7 +107,7 @@ monitor_filter_func (DBusConnection #ifdef __APPLE__ #define PROFILE_TIMED_FORMAT "%s\t%lu\t%d" #else -#define PROFILE_TIMED_FORMAT "%s\t%lu\t%lu" +#define PROFILE_TIMED_FORMAT "%s\t%llu\t%lu" #endif #define TRAP_NULL_STRING(str) ((str) ? (str) : "") @@ -127,7 +127,7 @@ static void profile_print_with_attrs (const char *type, DBusMessage *message, struct timeval *t, ProfileAttributeFlags attrs) { - printf (PROFILE_TIMED_FORMAT, type, t->tv_sec, t->tv_usec); + printf (PROFILE_TIMED_FORMAT, type, (unsigned long long)(t->tv_sec), (unsigned long)(t->tv_usec)); if (attrs & PROFILE_ATTRIBUTE_FLAG_SERIAL) printf ("\t%u", dbus_message_get_serial (message)); @@ -197,7 +197,7 @@ print_message_profile (DBusMessage *mess PROFILE_ATTRIBUTE_FLAG_MEMBER); break; default: - printf (PROFILE_TIMED_FORMAT "\n", "tun", t.tv_sec, t.tv_usec); + printf (PROFILE_TIMED_FORMAT "\n", "tun", (unsigned long long)(t.tv_sec), (unsigned long)(t.tv_usec)); break; } }