Changeset 56972c81 in mainline for init/init.c


Ignore:
Timestamp:
2006-03-14T21:19:38Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee7736e
Parents:
4241683
Message:

Fixed bug in printf (native from kernel must be unsigned long).
Putting prefixes in printf optimized.
Test function created in init.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r4241683 r56972c81  
    3333#include <unistd.h>
    3434#include <stdlib.h>
    35 
     35/*
     36static void test_printf(void)
     37{
     38        printf("Simple text.\n");
     39        printf("Now insert '%s' string.\n","this");
     40        printf("We are brave enought to print numbers like %%d = '%d'\n", 0x123456);
     41        printf("And now... '%b' byte! '%w' word! '%W' Word! \n", 0x12, 0x1234, 0x1234);
     42        printf(" '%Q' Q! Another '%q' q! \n", 0x1234567887654321ll, 0x1234567887654321ll);
     43        printf(" '%P' with 64bit value and '%p' with 32 bit value. \n", 0x1234567887654321ll, 0x12345678 );
     44        printf("Thats all, folks!\n");
     45}
     46*/
    3647/*
    3748static void test_mremap(void)
Note: See TracChangeset for help on using the changeset viewer.