Changeset 7fadb65 in mainline for kernel/test/print/print2.c


Ignore:
Timestamp:
2011-08-23T17:44:33Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
375ab5e, 4cf5ed46
Parents:
7ce7cfb
Message:

fix printout of signed integer arguments (thx Jiri Zarevucky)
synchronize printf implementations between boot, kernel and uspace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/print/print2.c

    r7ce7cfb r7fadb65  
    4444        TPRINTF("Real output:     [%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]\n\n", -1, -2, -3, -4, -5);
    4545       
     46        TPRINTF("Testing printf(\"%%lld %%3.2lld %%-3.2lld %%2.3lld %%-2.3lld\", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5):\n");
     47        TPRINTF("Expected output: [-1] [-02] [-03] [-004] [-005]\n");
     48        TPRINTF("Real output:     [%lld] [%3.2lld] [%-3.2lld] [%2.3lld] [%-2.3lld]\n\n", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5);
     49       
    4650        TPRINTF("Testing printf(\"%%#x %%5.3#x %%-5.3#x %%3.5#x %%-3.5#x\", 17, 18, 19, 20, 21):\n");
    4751        TPRINTF("Expected output: [0x11] [0x012] [0x013] [0x00014] [0x00015]\n");
Note: See TracChangeset for help on using the changeset viewer.