X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fsprintf_test.c;h=1bcedfd35175f289618f6494422d83f27d0019b4;hb=3fc75747c81395f9027b6b27cd03037e2a8eec08;hp=a0706525e89936cd1580da74eab41f7c923f7156;hpb=646a88d7412eec847c282b9b2050b3a37a9af7a5;p=bertos.git diff --git a/mware/sprintf_test.c b/mware/sprintf_test.c old mode 100755 new mode 100644 index a0706525..1bcedfd3 --- a/mware/sprintf_test.c +++ b/mware/sprintf_test.c @@ -1,8 +1,33 @@ -/*! +/** * \file * * * \brief sprintf() implementation based on _formatted_write() @@ -11,13 +36,6 @@ * \author Bernardo Innocenti */ -/*#* - *#* $Log$ - *#* Revision 1.4 2005/11/04 17:43:27 bernie - *#* Fix for LP64 architectures; Add some more tests. - *#* - *#*/ - #include "sprintf.c" #include "formatwr.c" #include "hex.c" @@ -51,7 +69,7 @@ int main(UNUSED_ARG(int, argc), UNUSED_ARG(char **,argv)) TEST("%ld", -12345678L, "-12345678"); TEST("%lu", 4294967295UL, "4294967295"); TEST("%hd", -12345, "-12345"); - TEST("%hu", 65535UL, "65535"); + TEST("%hu", 65535U, "65535"); TEST("%8d", 123, " 123"); TEST("%8d", -123, " -123");