Author: wma
Date: Fri Feb 26 10:24:24 2016
New Revision: 296090
URL: https://svnweb.freebsd.org/changeset/base/296090

Log:
  Change format string in pciconf EA to jx
  
      Fix compilation error introduced by r296081

Modified:
  head/usr.sbin/pciconf/cap.c

Modified: head/usr.sbin/pciconf/cap.c
==============================================================================
--- head/usr.sbin/pciconf/cap.c Fri Feb 26 09:50:35 2016        (r296089)
+++ head/usr.sbin/pciconf/cap.c Fri Feb 26 10:24:24 2016        (r296090)
@@ -657,13 +657,13 @@ cap_ea(int fd, struct pci_conf *p, uint8
                        b++;
                }
 
-               printf("\n\t\t [%d] %s, %s, %s, base [0x%lx], size [0x%lx]"
+               printf("\n\t\t [%d] %s, %s, %s, base [0x%jx], size [0x%jx]"
                    "\n\t\t\tPrimary properties [0x%x] (%s)"
                    "\n\t\t\tSecondary properties [0x%x] (%s)",
                    bei, ea_bei_to_name(bei),
                    (flags & PCIM_EA_ENABLE ? "Enabled" : "Disabled"),
-                       (flags & PCIM_EA_WRITABLE ? "Writable" : "Read-only"),
-                   base, max_offset + 1,
+                   (flags & PCIM_EA_WRITABLE ? "Writable" : "Read-only"),
+                   (uintmax_t)base, (uintmax_t)(max_offset + 1),
                    flags_pp, ea_prop_to_name(flags_pp),
                    flags_sp, ea_prop_to_name(flags_sp));
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to