ps: add build option to disable ps option warning
Slackware seems to have this patch, while it is not in use(?) Well, the upstream procps-ng allows one to disable warnings if that is wanted. After all having this sort of 'feature' does not cost much, while lacking it might annoy someone. A patch from Slackware. Reference: http://www.ftp.be/packages/slackware/slackware_source/a/procps/procps.nowarning.diff.gz Backported-by: Sami Kerola <kerolasa@iki.fi> Conflicts: proc/ksym.c
This commit is contained in:
@ -418,18 +418,26 @@ good_match:;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BUILD_WITH_WHINE
|
||||
if(0){
|
||||
bad_match:
|
||||
message("Warning: %s does not match kernel data.\n", filename);
|
||||
}
|
||||
#endif
|
||||
if(0){
|
||||
bad_version:
|
||||
message("Warning: %s has an incorrect kernel version.\n", filename);
|
||||
}
|
||||
if(0){
|
||||
bad_alloc:
|
||||
message("Warning: not enough memory available\n");
|
||||
}
|
||||
#ifdef BUILD_WITH_WHINE
|
||||
if(0){
|
||||
bad_parse:
|
||||
message("Warning: %s not parseable as a System.map\n", filename);
|
||||
}
|
||||
#endif
|
||||
if(0){
|
||||
bad_open:
|
||||
message("Warning: %s could not be opened as a System.map\n", filename);
|
||||
|
Reference in New Issue
Block a user