mtd/drivers/mtd/nand diskonchip.c,1.30,1.31
Kalev Lember
kalev at infradead.org
Mon Aug 9 03:20:56 EDT 2004
- Previous message: mtd/fs/jffs2 compr.c,1.41,1.42
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.24, 1.25 cfi_cmdset_0001.c,
1.153, 1.154 cfi_cmdset_0002.c, 1.104, 1.105 cfi_cmdset_0020.c,
1.14, 1.15 jedec.c, 1.20, 1.21 map_ram.c, 1.19, 1.20 sharp.c,
1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv3391
Modified Files:
diskonchip.c
Log Message:
Pretty-print the OsakVersion field
(port of Dan Brown's code from docfdisk.c)
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- diskonchip.c 26 Jul 2004 16:00:50 -0000 1.30
+++ diskonchip.c 9 Aug 2004 07:20:53 -0000 1.31
@@ -1125,13 +1125,17 @@
" NoOfBDTLPartitions = %d\n"
" BlockMultiplerBits = %d\n"
" FormatFlgs = %d\n"
- " OsakVersion = 0x%x\n"
+ " OsakVersion = %d.%d.%d.%d\n"
" PercentUsed = %d\n",
mh->bootRecordID, mh->NoOfBootImageBlocks,
mh->NoOfBinaryPartitions,
mh->NoOfBDTLPartitions,
mh->BlockMultiplierBits, mh->FormatFlags,
- mh->OsakVersion, mh->PercentUsed);
+ ((unsigned char *) &mh->OsakVersion)[0] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[1] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[2] & 0xf,
+ ((unsigned char *) &mh->OsakVersion)[3] & 0xf,
+ mh->PercentUsed);
//#endif
vshift = this->phys_erase_shift + mh->BlockMultiplierBits;
- Previous message: mtd/fs/jffs2 compr.c,1.41,1.42
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.24, 1.25 cfi_cmdset_0001.c,
1.153, 1.154 cfi_cmdset_0002.c, 1.104, 1.105 cfi_cmdset_0020.c,
1.14, 1.15 jedec.c, 1.20, 1.21 map_ram.c, 1.19, 1.20 sharp.c,
1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list