[xiph-commits] r15723 - experimental/giles/rogg

giles at svn.xiph.org giles at svn.xiph.org
Thu Feb 26 12:00:22 PST 2009


Author: giles
Date: 2009-02-26 12:00:21 -0800 (Thu, 26 Feb 2009)
New Revision: 15723

Modified:
   experimental/giles/rogg/rogg_pagedump.c
Log:
Fix some pointers-printed-as-int issues.


Modified: experimental/giles/rogg/rogg_pagedump.c
===================================================================
--- experimental/giles/rogg/rogg_pagedump.c	2009-02-26 19:51:14 UTC (rev 15722)
+++ experimental/giles/rogg/rogg_pagedump.c	2009-02-26 20:00:21 UTC (rev 15723)
@@ -49,7 +49,7 @@
   fprintf(out, " Ogg page serial %08x seq %d (%5d bytes)",
 	header->serialno, header->sequenceno, header->length);
   fprintf(out, (header->continued) ? " c" : "  ");
-  fprintf(out, " granule %lld", header->granulepos);
+  fprintf(out, " granule %lld", (long long int)header->granulepos);
   fprintf(out, (header->bos) ? " bos" : "");
   fprintf(out, (header->eos) ? " eos" : "");
   fprintf(out, "\n");
@@ -87,15 +87,15 @@
 	fprintf(stdout, "couldn't find ogg data!\n");
     } else {
       if (q > p) {
-	fprintf(stdout, "Skipped %d garbage bytes at the start\n", q-p);
-      } 
+	fprintf(stdout, "Skipped %ld garbage bytes at the start\n", (long)(q-p));
+      }
       while (q < e) {
 	o = rogg_scan(q, e-q);
 	if (o > q) {
-	  fprintf(stdout, "Hole in data! skipped %d bytes\n", o - q);
+	  fprintf(stdout, "Hole in data! skipped %ld bytes\n", (long)(o-q));
 	   q = o;
 	} else if (o == NULL) {
-	  fprintf(stdout, "Skipped %d garbage bytes as the end\n", e-q);
+	  fprintf(stdout, "Skipped %ld garbage bytes as the end\n", (long)(e-q));
 	  break;
 	}
 	rogg_page_parse(q, &header);



More information about the commits mailing list