]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk/part.c: 'usb storage' avoiding overflow when output capacity
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 8 Aug 2010 12:05:39 +0000 (15:05 +0300)
committerWolfgang Denk <wd@denx.de>
Tue, 10 Aug 2010 21:08:55 +0000 (23:08 +0200)
commit69a2a4d9a5884a6f2d04a551308980d452b9b349
treeb2784e2ad2d08056a8bb904e42c2197c8070e176
parentb9d51fbb18097975ff86d3a7b4a21a92a1b345f0
disk/part.c: 'usb storage' avoiding overflow when output capacity

Before:
    Marvell>> usb storage
      Device 0: Vendor: StoreJet Rev:  Prod:  Transcend
                Type: Hard Disk
                Capacity: 28759.9 MB = 28.0 GB (488397168 x 512)
After:
    Marvell>> usb storage
      Device 0: Vendor: StoreJet Rev:  Prod:  Transcend
                Type: Hard Disk
                Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
disk/part.c