Author: pluknet
Date: Fri Apr 12 21:29:37 2013
New Revision: 249430
URL: http://svnweb.freebsd.org/changeset/base/249430

Log:
  Fix build.
  - pass a format string to printf
  - catch up with constifying uz_name
  
  MFC after:    3 days

Modified:
  head/tools/tools/umastat/umastat.c

Modified: head/tools/tools/umastat/umastat.c
==============================================================================
--- head/tools/tools/umastat/umastat.c  Fri Apr 12 20:48:55 2013        
(r249429)
+++ head/tools/tools/umastat/umastat.c  Fri Apr 12 21:29:37 2013        
(r249430)
@@ -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);
                }
 
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to