]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/ui-system.c
ui/ncurses: Reset console options on boot
[petitboot] / ui / common / ui-system.c
index 9ab8dec0dfa36c264cea94dcd0fae36b4fb4a1c8..02142dbf303a1e993dcc39897d2773f73297cb5c 100644 (file)
@@ -16,7 +16,9 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define _GNU_SOURCE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
 
 #include <assert.h>
 #include <errno.h>
@@ -76,7 +78,7 @@ unsigned int pb_elf_hash(const char *str)
                        h ^= g >> 24;
                h &= ~g;
        }
-       pb_log("%s: %x\n", __func__, h);
+       pb_log_fn("%x\n", h);
        return h;
 }