PERFORCE change 169624 for review
Aditya Sarawgi
truncs at FreeBSD.org
Tue Oct 20 20:46:39 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=169624
Change 169624 by truncs at aditya on 2009/10/20 20:45:48
declare "uid" as uid_t instead of u_int, and fix format string accordingly
Ref: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/ufs/ext2fs/ext2fs_alloc.c.diff?r1=1.23;r2=1.24
Affected files ...
.. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_alloc.c#14 edit
Differences ...
==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_alloc.c#14 (text+ko) ====
@@ -53,7 +53,7 @@
static daddr_t ext2_alloccg(struct inode *, int, daddr_t, int);
static u_long ext2_dirpref(struct inode *);
-static void ext2_fserr(struct m_ext2fs *, u_int, char *);
+static void ext2_fserr(struct m_ext2fs *, uid_t, char *);
static u_long ext2_hashalloc(struct inode *, int, long, int,
daddr_t (*)(struct inode *, int, daddr_t,
int));
@@ -952,11 +952,11 @@
static void
ext2_fserr(fs, uid, cp)
struct m_ext2fs *fs;
- u_int uid;
+ uid_t uid;
char *cp;
{
- log(LOG_ERR, "uid %d on %s: %s\n", uid, fs->e2fs_fsmnt, cp);
+ log(LOG_ERR, "uid %u on %s: %s\n", uid, fs->e2fs_fsmnt, cp);
}
int
More information about the p4-projects
mailing list