Changeset 94f6df7 in mainline for uspace/app/tester/print/print1.c


Ignore:
Timestamp:
2012-04-15T06:18:53Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f682f5a
Parents:
6484602
Message:

fix printf %s when precision > string length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/print/print1.c

    r6484602 r94f6df7  
    4242       
    4343        TPRINTF("Testing printf(\"%%8.10s\", \"text\"):\n");
    44         TPRINTF("Expected output: \"text\"\n");
     44        TPRINTF("Expected output: \"    text\"\n");
    4545        TPRINTF("Real output:     \"%8.10s\"\n\n", "text");
    4646       
     
    4949        TPRINTF("Real output:     \"%8.10s\"\n\n", "very long text");
    5050       
     51        TPRINTF("Testing printf(\"%%-*.*s\", 7, 7, \"text\"):\n");
     52        TPRINTF("Expected output: \"text   \"\n");
     53        TPRINTF("Real output:     \"%-*.*s\"\n\n", 7, 7, "text");
     54       
    5155        return NULL;
    5256}
Note: See TracChangeset for help on using the changeset viewer.