+2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
+ rather than printf.
+ * grub-core/video/readers/tga.c: Likewise.
+
2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
* tests/priority_queue_unit_test.cc: New test.
/* Uncomment following define to enable TGA debug. */
//#define TGA_DEBUG
+#define dump_int_field(x) grub_dprintf ("tga", #x " = %d (0x%04x)\n", x, x);
#if defined(TGA_DEBUG)
-#define dump_int_field(x) grub_printf( #x " = %d (0x%04x)\n", x, x);
static grub_command_t cmd;
#endif
return grub_errno;
}
-#if defined(TGA_DEBUG)
- grub_printf("tga: header\n");
+ grub_dprintf("tga", "tga: header\n");
dump_int_field(header.id_length);
dump_int_field(header.color_map_type);
dump_int_field(header.image_type);
dump_int_field(header.image_height);
dump_int_field(header.image_bpp);
dump_int_field(header.image_descriptor);
-#endif
/* Check that bitmap encoding is supported. */
switch (header.image_type)