URL:
  <http://savannah.nongnu.org/bugs/?24207>

                 Summary: Example in inttypes.h is wrong
                 Project: AVR C Runtime Library
            Submitted by: charlybravo
            Submitted on: Thu 04 Sep 2008 10:27:08 PM GMT
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Documentation
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.1
           Fixed Release: None

    _______________________________________________________

Details:

The current example in the inttypes.h header contains the following line:

printf("The hexadecimal value of smallval is " PRIx8
           ", the decimal value of longval is " PRId32 ".\n",
           smallval, longval);

That should be

printf("The hexadecimal value of smallval is %" PRIx8
           ", the decimal value of longval is %" PRId32 ".\n",
           smallval, longval);

Note the two additional '%' characters, completing the format specification
from the macros.





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?24207>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to