VirtualBox

Changeset 390 in kBuild


Ignore:
Timestamp:
Jan 12, 2006 4:06:20 AM (19 years ago)
Author:
bird
Message:

Show me makeleve and jobs as prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/debug.h

    r218 r390  
    3131extern int db_level;
    3232
     33extern unsigned int makelevel;
     34extern unsigned int job_slots;
     35extern unsigned int job_slots_used;
     36
     37
     38#define DB_HDR()    do { printf ("[%u:%u/%u]", makelevel, job_slots_used, job_slots); } while (0)
     39
    3340#define ISDB(_l)    ((_l)&db_level)
    3441
    35 #define DBS(_l,_x)  do{ if(ISDB(_l)) {print_spaces (depth); \
     42#define DBS(_l,_x)  do{ if(ISDB(_l)) {DB_HDR(); \
     43                                      print_spaces (depth); \
    3644                                      printf _x; fflush (stdout);} }while(0)
    3745
    38 #define DBF(_l,_x)  do{ if(ISDB(_l)) {print_spaces (depth); \
     46#define DBF(_l,_x)  do{ if(ISDB(_l)) {DB_HDR(); \
     47                                      print_spaces (depth); \
    3948                                      printf (_x, file->name); \
    4049                                      fflush (stdout);} }while(0)
    4150
    42 #define DB(_l,_x)   do{ if(ISDB(_l)) {printf _x; fflush (stdout);} }while(0)
     51#define DB(_l,_x)   do{ if(ISDB(_l)) {DB_HDR(); printf _x; fflush (stdout);} }while(0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette