Changeset 1021 for trunk/udelay.c


Ignore:
Timestamp:
05/31/10 00:24:40 (2 years ago)
Author:
hailfinger
Message:

Remove unneeded #include statements completely.

unistd.h was only used to get a definition of NULL in all files. Add our
own NULL #define and remove unistd.h from flash.h
stdio.h has no place in flash.h, it should be included only in files
which really need it.
Add #include statements in individual .c files where needed.

Replace a few printf with msg_* to eliminate the need for stdio.h.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/udelay.c

    r992 r1021  
    2020 */ 
    2121 
     22#include <unistd.h> 
    2223#include <sys/time.h> 
    2324#include <stdlib.h> 
     
    6465        int i, tries = 0; 
    6566 
    66         printf("Calibrating delay loop... "); 
     67        msg_pinfo("Calibrating delay loop... "); 
    6768 
    6869recalibrate: 
     
    114115        msg_pdbg("10000 myus = %ld us, ", timeusec); 
    115116 
    116         printf("OK.\n"); 
     117        msg_pinfo("OK.\n"); 
    117118} 
    118119 
Note: See TracChangeset for help on using the changeset viewer.