NNDK Release 2.7.0 - iprintf() and long long

Discussion to talk about software related topics only.
Post Reply
ecasey
Posts: 164
Joined: Sat Mar 26, 2011 9:34 pm

NNDK Release 2.7.0 - iprintf() and long long

Post by ecasey »

I thought this was fixed but the iprintf() doesn't seem to work for long long numbers. Using a MOD5282 on a dev board:

Code: Select all

    long long totalSize,freeSize,badSize,usedSize;
    while (1) {
       totalSize = 1234567891;
       freeSize  = 2876543219;
       badSize   = 3468971346;
       usedSize  = 4055667788;

        iprintf( "%llu total, %llu free, %llu used, %llu bad\r\n",
                   totalSize, freeSize, usedSize, badSize );

        std::cout<<totalSize<<" total, "<<freeSize<<" free, "<<usedSize<<" used, "<<badSize<<" bad"<<endl;
gives this output
0 total, 1234567891 free, 0 used, 2876543219 bad
1234567891 total, 2876543219 free, 4055667788 used, 3468971346 bad
0 total, 1234567891 free, 0 used, 2876543219 bad
1234567891 total, 2876543219 free, 4055667788 used, 3468971346 bad
The iprintf (first and third lines) doesn't work, the streaming output (second and forth lines) works.

I saw this when I tried the EFFS-FTP example from the 2.7.0 release.
Not a bid deal for me, but it is probably something that should be fixed in a future release.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: NNDK Release 2.7.0 - iprintf() and long long

Post by dciliske »

I think this has already been fixed, awaiting release. The fix in question was made in mid December. Let me know if you need it sooner.

Thanks for mentioning it though.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply