Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2016 15:17:24 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293039 - in head/sys/dev: sec tsec
Message-ID:  <201601011517.u01FHOCo079299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Fri Jan  1 15:17:24 2016
New Revision: 293039
URL: https://svnweb.freebsd.org/changeset/base/293039

Log:
  Fix a couple printf formats.
  
  This was found when working on 64-bit PowerPC book-e support.

Modified:
  head/sys/dev/sec/sec.c
  head/sys/dev/tsec/if_tsec.c

Modified: head/sys/dev/sec/sec.c
==============================================================================
--- head/sys/dev/sec/sec.c	Fri Jan  1 12:35:33 2016	(r293038)
+++ head/sys/dev/sec/sec.c	Fri Jan  1 15:17:24 2016	(r293039)
@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/random.h>
 #include <sys/rman.h>
 
+#include <machine/_inttypes.h>
 #include <machine/bus.h>
 #include <machine/resource.h>
 
@@ -235,7 +236,7 @@ sec_probe(device_t dev)
 		sc->sc_version = 3;
 		break;
 	default:
-		device_printf(dev, "unknown SEC ID 0x%016llx!\n", id);
+		device_printf(dev, "unknown SEC ID 0x%16"PRIx64"!\n", id);
 		return (ENXIO);
 	}
 

Modified: head/sys/dev/tsec/if_tsec.c
==============================================================================
--- head/sys/dev/tsec/if_tsec.c	Fri Jan  1 12:35:33 2016	(r293038)
+++ head/sys/dev/tsec/if_tsec.c	Fri Jan  1 15:17:24 2016	(r293039)
@@ -561,7 +561,7 @@ tsec_set_mac_address(struct tsec_softc *
 	TSEC_GLOBAL_LOCK_ASSERT(sc);
 
 	KASSERT((ETHER_ADDR_LEN <= sizeof(macbuf)),
-	    ("tsec_set_mac_address: (%d <= %d", ETHER_ADDR_LEN,
+	    ("tsec_set_mac_address: (%d <= %zd", ETHER_ADDR_LEN,
 	    sizeof(macbuf)));
 
 	macbufp = (char *)macbuf;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601011517.u01FHOCo079299>