library: disable a potential 'ELF note' is missing msg

The stderr message regarding ELF notes appears on some
systems (openSUSE-13.1 for example) but I have not yet
isolated why. Since at startup we go on to determine a
Hertz value the old fashion way, this patch just turns
off the useless message until the cause is understood.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2014-07-16 00:00:00 -05:00 committed by Jaromir Capik
parent 93d37cf57a
commit 1da2c98937

View File

@ -282,7 +282,7 @@ static void init_libproc(void){
if(linux_version_code > LINUX_VERSION(2, 4, 0)){ if(linux_version_code > LINUX_VERSION(2, 4, 0)){
Hertz = find_elf_note(AT_CLKTCK); Hertz = find_elf_note(AT_CLKTCK);
if(Hertz!=NOTE_NOT_FOUND) return; if(Hertz!=NOTE_NOT_FOUND) return;
fputs("2.4+ kernel w/o ELF notes? -- report this\n", stderr); // fputs("2.4+ kernel w/o ELF notes? -- report this\n", stderr);
} }
#endif /* __linux __ */ #endif /* __linux __ */
#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__) #if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)