Output the unknown value as a number not a character. b=474800 r=dbaron
authorMats Palmgren <matspal@gmail.com>
Tue, 27 Apr 2010 18:15:02 +0200
changeset 41425 8102627c8c6262e502cd071c124a4745fc615a58
parent 41424 c14e08cf3e61b499039e532d2e97720874a9b954
child 41426 6271a260562bc5c3e2ef73280e6782d040b1fcf7
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs474800
milestone1.9.3a5pre
Output the unknown value as a number not a character. b=474800 r=dbaron
tools/trace-malloc/tmreader.c
--- a/tools/trace-malloc/tmreader.c
+++ b/tools/trace-malloc/tmreader.c
@@ -316,17 +316,17 @@ static int get_tmevent(FILE *fp, tmevent
             return 0;
         if (!get_uint32(fp, &event->u.stats.calltree_maxstack_top))
             return 0;
 #ifdef DEBUG_tmreader
         fprintf(stderr, "tmevent %c %u\n", event->type, event->serial);
 #endif
         break;
       default:
-        fprintf(stderr, "Unknown event type %c\n", event->type);
+        fprintf(stderr, "Unknown event type 0x%x\n", (unsigned int)event->type);
         return 0;
     }
     return 1;
 }
 
 static void *arena_alloc(void* pool, PRSize size)
 {
     PLArenaPool* arena = (PLArenaPool*)pool;