Browse Source

fixfmt: more lingering format issues.

It boots, but vga appears not to work?

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 7 years ago
parent
commit
de62f549c7
4 changed files with 4 additions and 4 deletions
  1. 1 1
      sys/src/9/ip/gre.c
  2. 1 1
      sys/src/cmd/ip/snoopy/main.c
  3. 1 1
      sys/src/cmd/jpg/rgbrgbv.c
  4. 1 1
      sys/src/cmd/jpg/rgbycc.c

+ 1 - 1
sys/src/9/ip/gre.c

@@ -231,7 +231,7 @@ grestate(Conv *c, char *state, int n)
 	p    = state;
 	ep   = p + n;
 	p    = seprint(p, ep, "%s%s%s%shoa %V north %V south %V seq %lx "
-	 "pending %lu  %lu buffered dl %lu %lu ul %lu %lu ulkey %.8ulx\n",
+	 "pending %lu  %lu buffered dl %lu %lu ul %lu %lu ulkey %.8lx\n",
 			c->inuse? "Open ": "Closed ",
 			grec->raw? "raw ": "",
 			grec->dlsusp? "DL suspended ": "",

+ 1 - 1
sys/src/cmd/ip/snoopy/main.c

@@ -354,7 +354,7 @@ printpkt(char *p, char *e, uint8_t *ps, uint8_t *pe)
 	uint32_t dt;
 
 	dt = (pkttime-starttime)/1000000LL;
-	m.p = seprint(p, e, "%6.6uld ms ", dt);
+	m.p = seprint(p, e, "%6.6lu ms ", dt);
 	m.ps = ps;
 	m.pe = pe;
 	m.e = e;

+ 1 - 1
sys/src/cmd/jpg/rgbrgbv.c

@@ -54,7 +54,7 @@ main(int argc, char *argv[])
 		r = (rgb>>16) & 0xFF;
 		g = (rgb>>8) & 0xFF;
 		b = (rgb>>0) & 0xFF;
-		print("0x%.6ulX, ", (r<<16) | (g<<8) | b);
+		print("0x%.6lX, ", (r<<16) | (g<<8) | b);
 		if(i%8 == 7)
 			print("\n");
 	}

+ 1 - 1
sys/src/cmd/jpg/rgbycc.c

@@ -95,7 +95,7 @@ main(int argc, char *argv[])
 		r = Y;
 		g = Cb;
 		b = Cr;
-		print("0x%.6ulX, ", (r<<16) | (g<<8) | b);
+		print("0x%.6lX, ", (r<<16) | (g<<8) | b);
 		if(i%8 == 7)
 			print("\n");
 	}