Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2019 18:26:17 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350562 - head/sys/dev/usb
Message-ID:  <201908031826.x73IQHEL092846@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Aug  3 18:26:16 2019
New Revision: 350562
URL: https://svnweb.freebsd.org/changeset/base/350562

Log:
  Fix format spec for ILP32.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/usb/usb_hub_acpi.c

Modified: head/sys/dev/usb/usb_hub_acpi.c
==============================================================================
--- head/sys/dev/usb/usb_hub_acpi.c	Sat Aug  3 17:07:04 2019	(r350561)
+++ head/sys/dev/usb/usb_hub_acpi.c	Sat Aug  3 18:26:16 2019	(r350562)
@@ -381,7 +381,8 @@ acpi_usb_hub_port_probe_cb(ACPI_HANDLE ah, UINT32 lv, 
 			struct sysctl_oid *oid;
 			struct sysctl_oid_list *tree;
 			
-			snprintf(buf, sizeof(buf), "port%lu", devinfo->Address);
+			snprintf(buf, sizeof(buf), "port%ju",
+			    (uintmax_t)devinfo->Address);
 			oid = SYSCTL_ADD_NODE(ctx,
 					      SYSCTL_CHILDREN(
 						      device_get_sysctl_tree(dev)),



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