comparison src/bar_info.c @ 495:c7a2471e5c4e

Introduce macros to display debug messages. if (debug) printf(...) is now replaced by variadic macros: DEBUG_1() And for higher debugging levels: DEBUG_2() DEBUG_3() DEBUG_4()
author zas_
date Wed, 23 Apr 2008 20:47:19 +0000
parents 2b85ad4c59bd
children fc9c8a3e1a8b
comparison
equal deleted inserted replaced
494:3bb9a8df6ee9 495:c7a2471e5c4e
109 109
110 if (comment_path) 110 if (comment_path)
111 { 111 {
112 gchar *comment_pathl; 112 gchar *comment_pathl;
113 113
114 if (debug) printf("Saving comment: %s\n", comment_path); 114 DEBUG_1("Saving comment: %s\n", comment_path);
115 115
116 comment_pathl = path_from_utf8(comment_path); 116 comment_pathl = path_from_utf8(comment_path);
117 117
118 success = comment_file_write(comment_pathl, keywords, comment); 118 success = comment_file_write(comment_pathl, keywords, comment);
119 119