[U-Boot-Users] IDE LBA48 support and vsprintf 64bit support
VanBaren, Gerald (AGRE)
Gerald.VanBaren at smiths-aerospace.com
Fri Feb 27 13:55:53 CET 2004
A much simpler, although not quite as pretty nor as flexible, solution is to print 64 bit integers in two halves. This only works for hex printouts and the %08X (zero fill with 8 positions) is necessary to make it work.
printf("This is a hex 64 bit long: %08X%08X", (unsigned int)(data >> 32), (unsigned int)data);
gvb
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Wolfgang
> Denk
> Sent: Thursday, February 26, 2004 8:09 PM
> To: Rune Torgersen
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] IDE LBA48 support and vsprintf
> 64bit support
>
>
>
> In message
> <DCEAAC0833DD314AB0B58112AD99B93B06DA76 at ismail.innsys.innovsys
> .com> you wrote:
> >
> > Here are two patches.
> > First patch gives vsprintf the ability to print 64bit
> integers by using
> > L as the qualifier
> > Eg printf("a 64 bit number: %Lx", a64bitnumber);
> > Also adds simple_strtoull (that handles long longs)
> >
> > Second patch adds 48bit addressing support to the IDE interface.
> > Needs the vsprintf patches to be able to print larger capacity.
>
> Ummm... actually I don't like to increase the memory footprint for
> all systems for a feature which nearly nobody ever needs. I think it
> should be possible to print the large capacities without using such
> data formats (I guess you don't need 64 bit precision).
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
> How long does it take a DEC field service engineer to change a
> lightbulb? It depends on how many bad ones he brought with him.
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************
More information about the U-Boot
mailing list