[U-Boot] [PATCH] disk/part.c: 'usb storage' avoiding overflow when output capacity
Wolfgang Denk
wd at denx.de
Tue Aug 10 23:10:58 CEST 2010
Dear Sergei Trofimovich,
In message <1281269139-8194-1-git-send-email-slyfox at inbox.ru> you wrote:
> From: Sergei Trofimovich <slyfox at gentoo.org>
>
> 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 at gentoo.org>
> ---
> Changes since V1:
> Fixed space usage instead of tabs. Noticed by Sergei Shtylyov.
>
> disk/part.c | 28 +++++++++++++++++++++++-----
> 1 files changed, 23 insertions(+), 5 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Where shall I begin, please your Majesty?" he asked. "Begin at the
beginning," the King said, gravely, "and go on till you come to the
end: then stop." - Alice's Adventures in Wonderland, Lewis Carroll
More information about the U-Boot
mailing list