diff options
| author | he <he@NetBSD.org> | 2006-09-10 19:13:54 +0000 |
|---|---|---|
| committer | he <he@NetBSD.org> | 2006-09-10 19:13:54 +0000 |
| commit | d4831ce469d8bda816fd3e0ff607cbd8f192a7bf (patch) | |
| tree | b633f9ee467f14cd77dacab4ddc485eafe067014 /usr.sbin/btdevctl | |
| parent | b5e819f5d1ce87fe833a4d45eff5745b7012252d (diff) | |
Print explicit 64-bit types using the format macros from int_fmtio.h.
Unbreaks the build for our LP64 ports, where "long long" typically is
not 64 bits.
Diffstat (limited to 'usr.sbin/btdevctl')
| -rw-r--r-- | usr.sbin/btdevctl/print.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/btdevctl/print.c b/usr.sbin/btdevctl/print.c index 4160dfdb2fa..d26e18ab016 100644 --- a/usr.sbin/btdevctl/print.c +++ b/usr.sbin/btdevctl/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.1 2006/09/10 15:45:56 plunky Exp $ */ +/* $NetBSD: print.c,v 1.2 2006/09/10 19:13:54 he Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -58,7 +58,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: print.c,v 1.1 2006/09/10 15:45:56 plunky Exp $"); +__RCSID("$NetBSD: print.c,v 1.2 2006/09/10 19:13:54 he Exp $"); #include <sys/types.h> @@ -126,11 +126,13 @@ cfg_bthidev(prop_dictionary_t dict) obj = prop_dictionary_get(dict, BTHIDEVcontrolpsm); if (prop_object_type(obj) == PROP_TYPE_NUMBER) - printf("control psm: 0x%4.4llx\n", prop_number_integer_value(obj)); + printf("control psm: 0x%4.4" PRIx64 "\n", + prop_number_integer_value(obj)); obj = prop_dictionary_get(dict, BTHIDEVinterruptpsm); if (prop_object_type(obj) == PROP_TYPE_NUMBER) - printf("interrupt psm: 0x%4.4llx\n", prop_number_integer_value(obj)); + printf("interrupt psm: 0x%4.4" PRIx64 "\n", + prop_number_integer_value(obj)); obj = prop_dictionary_get(dict, BTHIDEVreconnect); if (prop_bool_true(obj)) @@ -151,7 +153,8 @@ cfg_btsco(prop_dictionary_t dict) obj = prop_dictionary_get(dict, BTSCOchannel); if (prop_object_type(obj) == PROP_TYPE_NUMBER) - printf("channel: %lld\n", prop_number_integer_value(obj)); + printf("channel: %" PRId64 "\n", + prop_number_integer_value(obj)); } static void |
