summaryrefslogtreecommitdiffstats
path: root/sbin/growfs/debug.c
diff options
context:
space:
mode:
authortomsoft <tomsoft@FreeBSD.org>2001-06-07 20:43:00 +0000
committertomsoft <tomsoft@FreeBSD.org>2001-06-07 20:43:00 +0000
commitc8022c06b62b7f8f430f3a896dd2d4f5adc344cb (patch)
tree88005a61cb83c4132d37ad543b7baa70c3f8a182 /sbin/growfs/debug.c
parentd2393db21652b2669cbc09533aa2f6a48f493ba8 (diff)
downloadFreeBSD-src-c8022c06b62b7f8f430f3a896dd2d4f5adc344cb.zip
FreeBSD-src-c8022c06b62b7f8f430f3a896dd2d4f5adc344cb.tar.gz
cleanup to get rid of most warnings on alpha
and yes now it also works on alpha Reviewed by: chm MFC after: 3 weeks
Diffstat (limited to 'sbin/growfs/debug.c')
-rw-r--r--sbin/growfs/debug.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c
index eb836e5..53ec674 100644
--- a/sbin/growfs/debug.c
+++ b/sbin/growfs/debug.c
@@ -155,8 +155,8 @@ dbg_dump_fs(struct fs *sb, const char *comment)
sb->fs_cgoffset);
fprintf(dbg_log, "cgmask int32_t 0x%08x\n",
sb->fs_cgmask);
- fprintf(dbg_log, "time time_t %10lu\n",
- sb->fs_time);
+ fprintf(dbg_log, "time time_t %10u\n",
+ (unsigned int)sb->fs_time);
fprintf(dbg_log, "size int32_t 0x%08x\n",
sb->fs_size);
fprintf(dbg_log, "dsize int32_t 0x%08x\n",
@@ -330,7 +330,8 @@ dbg_dump_cg(const char *comment, struct cg *cgr)
indent++;
fprintf(dbg_log, "magic int32_t 0x%08x\n", cgr->cg_magic);
- fprintf(dbg_log, "time time_t %10lu\n", cgr->cg_time);
+ fprintf(dbg_log, "time time_t %10u\n", (unsigned int)
+ cgr->cg_time);
fprintf(dbg_log, "cgx int32_t 0x%08x\n", cgr->cg_cgx);
fprintf(dbg_log, "ncyl int16_t 0x%04x\n", cgr->cg_ncyl);
fprintf(dbg_log, "niblk int16_t 0x%04x\n", cgr->cg_niblk);
@@ -530,7 +531,7 @@ void
dbg_dump_clsum(struct fs *sb, const char *comment, struct cg *cgr)
{
int j;
- long *lp;
+ int *ip;
if(!dbg_log) {
return;
@@ -540,9 +541,9 @@ dbg_dump_clsum(struct fs *sb, const char *comment, struct cg *cgr)
fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)cgr, comment);
indent++;
- lp=(long *)cg_clustersum(cgr);
+ ip=(int *)cg_clustersum(cgr);
for(j=0; j<=sb->fs_contigsumsize; j++) {
- fprintf(dbg_log, "%02d: %8ld\n", j, *lp++);
+ fprintf(dbg_log, "%02d: %8d\n", j, *ip++);
}
indent--;
@@ -559,7 +560,7 @@ void
dbg_dump_sptbl(struct fs *sb, const char *comment, struct cg *cgr)
{
int j,k;
- long *lp;
+ int *ip;
if(!dbg_log) {
return;
@@ -570,9 +571,9 @@ dbg_dump_sptbl(struct fs *sb, const char *comment, struct cg *cgr)
fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)cgr, comment);
indent++;
- lp=(long *)cg_blktot(cgr);
+ ip=(int *)cg_blktot(cgr);
for(j=0; j<sb->fs_cpg; j++) {
- fprintf(dbg_log, "%2d: %5ld = ", j, *lp++);
+ fprintf(dbg_log, "%2d: %5d = ", j, *ip++);
for(k=0; k<sb->fs_nrpos; k++) {
fprintf(dbg_log, "%4d", cg_blks(sb, cgr, j)[k]);
if(k<sb->fs_nrpos-1) {
OpenPOWER on IntegriCloud