From b2c75c5ee3033d0cfbe01b8d867f491f6935f361 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 23 Apr 2011 18:02:48 +0000 Subject: [PATCH] kfs: extend fid from short to ulong --- sys/src/cmd/disk/kfs/portdat.h | 2 +- sys/src/cmd/disk/kfs/sub.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/disk/kfs/portdat.h b/sys/src/cmd/disk/kfs/portdat.h index 43a937e6d..b64bbe14c 100644 --- a/sys/src/cmd/disk/kfs/portdat.h +++ b/sys/src/cmd/disk/kfs/portdat.h @@ -150,7 +150,7 @@ struct File long addr; long slot; long lastra; /* read ahead address */ - short fid; + ulong fid; short uid; char open; #define FREAD 1 diff --git a/sys/src/cmd/disk/kfs/sub.c b/sys/src/cmd/disk/kfs/sub.c index 09485aa46..7007c71c4 100644 --- a/sys/src/cmd/disk/kfs/sub.c +++ b/sys/src/cmd/disk/kfs/sub.c @@ -89,7 +89,7 @@ loop: goto out; } } -else print("cannot find %p.%d (list=%p)\n", cp, fid, cp->flist); +else print("cannot find %p.%ud (list=%p)\n", cp, fid, cp->flist); unlock(&cp->flock); return 0;