better check for printf

Original commit message from CVS:
better check for printf
This commit is contained in:
David Schleef 2003-10-13 23:27:32 +00:00
parent 28e9362149
commit ec41842698
2 changed files with 6 additions and 4 deletions

View File

@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
check_config_h(); check_config_h();
check_varargs_functions(); check_varargs_functions();
check_debugging(); check_debugging();
check_bad_includes();
} }
open FIND, "find . -name \"Makefile.am\" -print|"; open FIND, "find . -name \"Makefile.am\" -print|";
@ -308,8 +309,8 @@ sub check_varargs_functions()
# #
sub check_debugging() sub check_debugging()
{ {
if (grep { /\Wg_print\W/; } @lines) { if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
print "W: friendly libraries don't use g_print\n"; print "W: friendly libraries don't print to stdio or stderr\n";
} }
if (grep { /GST_DEBUG.*\\n"/; } @lines) { if (grep { /GST_DEBUG.*\\n"/; } @lines) {

View File

@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
check_config_h(); check_config_h();
check_varargs_functions(); check_varargs_functions();
check_debugging(); check_debugging();
check_bad_includes();
} }
open FIND, "find . -name \"Makefile.am\" -print|"; open FIND, "find . -name \"Makefile.am\" -print|";
@ -308,8 +309,8 @@ sub check_varargs_functions()
# #
sub check_debugging() sub check_debugging()
{ {
if (grep { /\Wg_print\W/; } @lines) { if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
print "W: friendly libraries don't use g_print\n"; print "W: friendly libraries don't print to stdio or stderr\n";
} }
if (grep { /GST_DEBUG.*\\n"/; } @lines) { if (grep { /GST_DEBUG.*\\n"/; } @lines) {