From owner-svn-src-projects@FreeBSD.ORG Sun Feb 24 21:20:58 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 632F7331; Sun, 24 Feb 2013 21:20:58 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 55C9369E; Sun, 24 Feb 2013 21:20:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1OLKwL6091573; Sun, 24 Feb 2013 21:20:58 GMT (envelope-from bryanv@svn.freebsd.org) Received: (from bryanv@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1OLKwbv091572; Sun, 24 Feb 2013 21:20:58 GMT (envelope-from bryanv@svn.freebsd.org) Message-Id: <201302242120.r1OLKwbv091572@svn.freebsd.org> From: Bryan Venteicher Date: Sun, 24 Feb 2013 21:20:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r247238 - projects/virtio/sys/dev/virtio X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2013 21:20:58 -0000 Author: bryanv Date: Sun Feb 24 21:20:57 2013 New Revision: 247238 URL: http://svnweb.freebsd.org/changeset/base/247238 Log: virtio: Remove PRIx64 macros from format strings Approved by: grehan (implicit) Modified: projects/virtio/sys/dev/virtio/virtio.c Modified: projects/virtio/sys/dev/virtio/virtio.c ============================================================================== --- projects/virtio/sys/dev/virtio/virtio.c Sun Feb 24 21:00:37 2013 (r247237) +++ projects/virtio/sys/dev/virtio/virtio.c Sun Feb 24 21:20:57 2013 (r247238) @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include @@ -119,12 +118,12 @@ virtio_describe(device_t dev, const char int n; if ((buf = malloc(512, M_TEMP, M_NOWAIT)) == NULL) { - device_printf(dev, "%s features: 0x%"PRIx64"\n", msg, features); + device_printf(dev, "%s features: %#jx\n", msg, (uintmax_t) features); return; } sbuf_new(&sb, buf, 512, SBUF_FIXEDLEN); - sbuf_printf(&sb, "%s features: 0x%"PRIx64, msg, features); + sbuf_printf(&sb, "%s features: %#jx", msg, (uintmax_t) features); for (n = 0, val = 1ULL << 63; val != 0; val >>= 1) { /* @@ -141,7 +140,7 @@ virtio_describe(device_t dev, const char name = virtio_feature_name(val, desc); if (name == NULL) - sbuf_printf(&sb, "0x%"PRIx64, val); + sbuf_printf(&sb, "%#jx", (uintmax_t) val); else sbuf_cat(&sb, name); }