diff options
author | gleb <gleb@FreeBSD.org> | 2014-12-17 07:27:19 +0000 |
---|---|---|
committer | gleb <gleb@FreeBSD.org> | 2014-12-17 07:27:19 +0000 |
commit | 5c99f46b3bbc601b0b935944e170948c781a073e (patch) | |
tree | 49e07a33f717fc11a77f96d21126c8dd675b430b /sys/dev/drm | |
parent | 9bea39ca06cc5b3fe0c12d90363acdb8aa931771 (diff) | |
download | FreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.zip FreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.tar.gz |
Adjust printf format specifiers for dev_t and ino_t in kernel.
ino_t and dev_t are about to become uint64_t.
Reviewed by: kib, mckusick
Diffstat (limited to 'sys/dev/drm')
-rw-r--r-- | sys/dev/drm/drm_sysctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_sysctl.c b/sys/dev/drm/drm_sysctl.c index 9e2c49a..2a138e8 100644 --- a/sys/dev/drm/drm_sysctl.c +++ b/sys/dev/drm/drm_sysctl.c @@ -137,8 +137,9 @@ static int drm_name_info DRM_SYSCTL_HANDLER_ARGS int retcode; int hasunique = 0; - DRM_SYSCTL_PRINT("%s 0x%x", dev->driver->name, dev2udev(dev->devnode)); - + DRM_SYSCTL_PRINT("%s 0x%jx", dev->driver->name, + (uintmax_t)dev2udev(dev->devnode)); + DRM_LOCK(); if (dev->unique) { snprintf(buf, sizeof(buf), " %s", dev->unique); |