mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
better check for printf
Original commit message from CVS: better check for printf
This commit is contained in:
parent
28e9362149
commit
ec41842698
2 changed files with 6 additions and 4 deletions
|
@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
|
|||
check_config_h();
|
||||
check_varargs_functions();
|
||||
check_debugging();
|
||||
check_bad_includes();
|
||||
}
|
||||
|
||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||
|
@ -308,8 +309,8 @@ sub check_varargs_functions()
|
|||
#
|
||||
sub check_debugging()
|
||||
{
|
||||
if (grep { /\Wg_print\W/; } @lines) {
|
||||
print "W: friendly libraries don't use g_print\n";
|
||||
if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
|
||||
print "W: friendly libraries don't print to stdio or stderr\n";
|
||||
}
|
||||
|
||||
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
||||
|
|
|
@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
|
|||
check_config_h();
|
||||
check_varargs_functions();
|
||||
check_debugging();
|
||||
check_bad_includes();
|
||||
}
|
||||
|
||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||
|
@ -308,8 +309,8 @@ sub check_varargs_functions()
|
|||
#
|
||||
sub check_debugging()
|
||||
{
|
||||
if (grep { /\Wg_print\W/; } @lines) {
|
||||
print "W: friendly libraries don't use g_print\n";
|
||||
if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
|
||||
print "W: friendly libraries don't print to stdio or stderr\n";
|
||||
}
|
||||
|
||||
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
||||
|
|
Loading…
Reference in a new issue