svn commit: r250045 - stable/9/tools/tools/umastat
Sergey Kandaurov
pluknet at FreeBSD.org
Mon Apr 29 11:35:53 UTC 2013
Author: pluknet
Date: Mon Apr 29 11:35:52 2013
New Revision: 250045
URL: http://svnweb.freebsd.org/changeset/base/250045
Log:
Fix build.
- pass a format string to printf
- catch up with constifying uz_name
Modified:
stable/9/tools/tools/umastat/umastat.c
Directory Properties:
stable/9/tools/tools/umastat/ (props changed)
Modified: stable/9/tools/tools/umastat/umastat.c
==============================================================================
--- stable/9/tools/tools/umastat/umastat.c Mon Apr 29 10:52:45 2013 (r250044)
+++ stable/9/tools/tools/umastat/umastat.c Mon Apr 29 11:35:52 2013 (r250045)
@@ -79,7 +79,7 @@ kread(kvm_t *kvm, void *kvm_pointer, voi
}
static int
-kread_string(kvm_t *kvm, void *kvm_pointer, char *buffer, int buflen)
+kread_string(kvm_t *kvm, const void *kvm_pointer, char *buffer, int buflen)
{
ssize_t ret;
int i;
@@ -151,7 +151,7 @@ uma_print_keg_flags(struct uma_keg *ukp,
if (ukp->uk_flags & flaginfo[i].fi_flag) {
if (count++ > 0)
printf(" | ");
- printf(flaginfo[i].fi_name);
+ printf("%s", flaginfo[i].fi_name);
}
}
More information about the svn-src-stable-9
mailing list