ktrdump: handle %c in ktr format strings
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Sun, 10 Jul 2011 21:44:04 +0000 (23:44 +0200)
committerAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Sun, 10 Jul 2011 21:44:04 +0000 (23:44 +0200)
usr.bin/ktrdump/ktrdump.c

index c3037a7..1ba9831 100644 (file)
@@ -1036,6 +1036,11 @@ kvmfprintf(FILE *fp, const char *ctl, va_list va)
                                        ++n;
                                        is_done = 1;
                                        break;
+                               case 'c':
+                                       fprintf(fp, "%c", va_arg(va, int));
+                                       ++n;
+                                       is_done = 1;
+                                       break;
                                case 's':
                                        /*
                                         * String