diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
commit | 772afbe98c7e74be35e7e5318967ce594e4d93e8 (patch) | |
tree | 006ef64214c4ab980ff3125ea812f42235706b5b /sys/src/cmd/cwfs | |
parent | 9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff) |
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/cmd/cwfs')
-rw-r--r-- | sys/src/cmd/cwfs/juke.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/cwfs/juke.c b/sys/src/cmd/cwfs/juke.c index 5deabd8a2..834a83891 100644 --- a/sys/src/cmd/cwfs/juke.c +++ b/sys/src/cmd/cwfs/juke.c @@ -212,7 +212,7 @@ wormunit(Device *d) /* d is l0 or r2 (e.g.) */ delay(100); } if(chatty) - fprint(2, "\tload r%ld drive %Z\n", v-w->side, w->drive[drive]); + fprint(2, "\tload r%zd drive %Z\n", v-w->side, w->drive[drive]); if(mmove(w, w->mt0, v->elem, w->dt0+drive, v->rot)) { qunlock(w); goto sbad; @@ -398,7 +398,7 @@ loop: goto loop; } if(chatty) - fprint(2, "\tunload r%ld drive %Z\n", + fprint(2, "\tunload r%zd drive %Z\n", v-w->side, w->drive[drive]); if(mmove(w, w->mt0, w->dt0+drive, v->elem, v->rot)) { qunlock(v); @@ -1319,7 +1319,7 @@ wormprobe(void) if(v->status == Sstart && t > v->time) { drive = v->drive; if(chatty) - fprint(2, "\ttime r%ld drive %Z\n", + fprint(2, "\ttime r%zd drive %Z\n", v-w->side, w->drive[drive]); mmove(w, w->mt0, w->dt0+drive, v->elem, v->rot); v->status = Sunload; |