Skip to contentSkip to conversation

Trivial build break

PATCH New Alex Williamson 1 participant 1 message Sep 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Trivial build break

I'm surprised this hasn't been fixed yet. x86_64 & ia64 currently
fail to build the staging tree. Thanks,

Alex

---

tools/xentrace/xentrace.c +2 -2
diff -r e73ea74cba30 tools/xentrace/xentrace.c
@@ -121,7 +121,7 @@ void write_buffer(unsigned int cpu, unsi
 
         if ( written != sizeof(rec) )
         {
-            fprintf(stderr, "Cannot write cpu change (write returned %d)\n",
+            fprintf(stderr, "Cannot write cpu change (write returned %ld)\n",
                     written);
             goto fail;
         }
@@ -130,7 +130,7 @@ void write_buffer(unsigned int cpu, unsi
     written = write(outfd, start, size);
     if ( written != size )
     {
-        fprintf(stderr, "Write failed! (size %d, returned %d)\n",
+        fprintf(stderr, "Write failed! (size %d, returned %ld)\n",
                 size, written);
         goto fail;
     }