Permalink
Browse files

* Improved logging

  • Loading branch information...
1 parent 0e58a95 commit a1f4317231a7dbf7e9c112baa6b7a39d19dab429 @xaphier xaphier committed May 19, 2011
Showing with 81 additions and 76 deletions.
  1. +8 −3 counters.c
  2. +1 −1 fsaa/fsaa.c
  3. +1 −1 fsaa/fsaa_cgl.c
  4. +1 −1 fsaa/fsaa_dummy.c
  5. +1 −1 fsaa/fsaa_glx.c
  6. +1 −1 fsaa/fsaa_wgl.c
  7. +53 −51 gl_init.c
  8. +4 −4 io/e3d_io.c
  9. +1 −3 io/elfilewrapper.c
  10. +1 −1 load_gl_extensions.c
  11. +1 −1 servers.c
  12. +8 −8 update.c
View
@@ -231,6 +231,8 @@ void load_counters()
return;
}
+ ENTER_DEBUG_MARK("load counters");
+
while (fread(&io_counter_id, sizeof(io_counter_id), 1, f) > 0) {
fread_ok = 0;
if (fread(&io_name_len, sizeof(io_name_len), 1, f) != 1)
@@ -268,7 +270,7 @@ void load_counters()
counters_initialized = 1;
- LOG_DEBUG("Read counters");
+ LEAVE_DEBUG_MARK("load counters");
}
void flush_counters()
@@ -286,13 +288,16 @@ void flush_counters()
return;
}
+ ENTER_DEBUG_MARK("flush counters");
+
for (i = 0; i < NUM_COUNTERS; i++) {
io_counter_id = i + 1;
for (j = 0; j < entries[i]; j++) {
io_name_len = strlen(counters[i][j].name);
- LOG_DEBUG("Writing counter '%s'", counters[i][j].name);
+ LOG_DEBUG("Writing counter '%s'",
+ counters[i][j].name);
fwrite(&io_counter_id, sizeof(io_counter_id), 1, f);
fwrite(&io_name_len, sizeof(io_name_len), 1, f);
@@ -304,7 +309,7 @@ void flush_counters()
fclose(f);
- LOG_DEBUG("Wrote counters");
+ LEAVE_DEBUG_MARK("flush counters");
}
void cleanup_counters()
View
@@ -40,7 +40,7 @@ void init_fsaa_modes()
}
}
- LOG_INFO("Supported fsaa modes: %s", str);
+ LOG_DEBUG("Supported fsaa modes: %s", str);
}
unsigned int get_fsaa_mode(const unsigned int index)
View
@@ -8,7 +8,7 @@ unsigned int get_fsaa_modes()
int i, j, index, result;
CGLRendererInfoObj render_info;
- LOG_INFO("Using cgl to get fsaa modes");
+ LOG_DEBUG("Using cgl to get fsaa modes");
CGLQueryRendererInfo(1, &render_info, &renders);
View
@@ -3,7 +3,7 @@
unsigned int get_fsaa_modes()
{
- LOG_INFO("Using dummy to get fsaa modes");
+ LOG_DEBUG("Using dummy to get fsaa modes");
return 1;
}
View
@@ -33,7 +33,7 @@ unsigned int get_fsaa_modes()
int i, count, caveat, samples;
unsigned int result;
- LOG_INFO("Using glx to get fsaa modes");
+ LOG_DEBUG("Using glx to get fsaa modes");
_glXChooseFBConfig = (PFNGLXCHOOSEFBCONFIGPROC)glXGetProcAddressARB((const GLubyte*)"glXChooseFBConfig");
_glXGetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC)glXGetProcAddressARB((const GLubyte*)"glXGetFBConfigAttrib");
View
@@ -32,7 +32,7 @@ unsigned int get_fsaa_modes()
unsigned int multisample, pixel_format;
int query, samples, format;
- LOG_INFO("Using wgl to get fsaa modes");
+ LOG_DEBUG("Using wgl to get fsaa modes");
result = 1;
Oops, something went wrong.

0 comments on commit a1f4317

Please sign in to comment.