Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: backgrounds.c events.c misc.c Log Message: Debug stuff. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/backgrounds.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- backgrounds.c 7 Jan 2006 07:20:57 -0000 1.56 +++ backgrounds.c 8 Jan 2006 23:51:07 -0000 1.57 @@ -2588,6 +2588,8 @@ bg = DeskBackgroundGet(DeskGet(i)); if (bg) IpcPrintf("%i %s\n", i, BackgroundGetName(bg)); + else + IpcPrintf("%i %s\n", i, "-NONE-"); } } else if (!strncmp(cmd, "apply", 2)) =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/events.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -3 -r1.113 -r1.114 --- events.c 8 Jan 2006 16:13:20 -0000 1.113 +++ events.c 8 Jan 2006 23:51:07 -0000 1.114 @@ -511,7 +511,7 @@ continue; if (EventDebug(EDBUG_TYPE_EVENTS) > 1) - Eprintf("EventsProcess %d type=%d\n", i, evq[i].type); + EventShow(evq + i); count++; HandleEvent(evq + i); =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/misc.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -3 -r1.70 -r1.71 --- misc.c 7 Jan 2006 07:20:58 -0000 1.70 +++ misc.c 8 Jan 2006 23:51:07 -0000 1.71 @@ -185,6 +185,9 @@ /* * Debug/error message printing. */ + +#if 1 /* Set to 0 for differential time */ + void Eprintf(const char *fmt, ...) { @@ -201,3 +204,31 @@ vfprintf(stdout, fmt, args); va_end(args); } + +#else + +void +Eprintf(const char *fmt, ...) +{ + static struct timeval t0; + va_list args; + struct timeval tv; + long ts, tus; + + gettimeofday(&tv, NULL); + ts = tv.tv_sec - t0.tv_sec; + tus = tv.tv_usec - t0.tv_usec; + if (tus < 0) + { + tus += 1000000; + ts -= 1; + } + fprintf(stdout, "[%d] %#lx %4ld.%06ld: ", getpid(), NextRequest(disp), ts, + tus); + va_start(args, fmt); + vfprintf(stdout, fmt, args); + va_end(args); + gettimeofday(&t0, NULL); +} + +#endif ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs