mtd/util docfdisk.c,1.7,1.8
dbrown at infradead.org
dbrown at infradead.org
Wed Jul 28 10:32:35 EDT 2004
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv29933
Modified Files:
docfdisk.c
Log Message:
Pretty-print the OsakVersion field.
Index: docfdisk.c
===================================================================
RCS file: /home/cvs/mtd/util/docfdisk.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- docfdisk.c 28 Jul 2004 14:13:31 -0000 1.7
+++ docfdisk.c 28 Jul 2004 14:32:33 -0000 1.8
@@ -78,13 +78,17 @@
" NoOfBDTLPartitions = %d\n"
" BlockMultiplierBits = %d\n"
" FormatFlags = %d\n"
- " OsakVersion = 0x%x\n"
+ " OsakVersion = %d.%d.%d.%d\n"
" PercentUsed = %d\n",
mh->bootRecordID, le32_to_cpu(mh->NoOfBootImageBlocks),
le32_to_cpu(mh->NoOfBinaryPartitions),
le32_to_cpu(mh->NoOfBDTLPartitions),
bmbits,
- le32_to_cpu(mh->FormatFlags), mh->OsakVersion,
+ le32_to_cpu(mh->FormatFlags),
+ ((unsigned char *) &mh->OsakVersion)[0] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[1] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[2] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[3] & 0xf,
le32_to_cpu(mh->PercentUsed));
numpart = le32_to_cpu(mh->NoOfBinaryPartitions) +
More information about the linux-mtd-cvs
mailing list