]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/main-generic.c
ui/ncurses: in lockdown ensure system reboot in ncurses menu exit
[petitboot] / ui / twin / main-generic.c
index 649ad00121c800cb57a98d9c58ba71bbe760712f..a85cace0b8581c263881ff0285240b6a175282f8 100644 (file)
@@ -21,7 +21,6 @@
 #include "config.h"
 #endif
 
-#define _GNU_SOURCE
 #include <assert.h>
 #include <errno.h>
 #include <getopt.h>
@@ -58,7 +57,7 @@ static int edit_preferences_cb(struct pbt_item *item)
 
        (void)client;
 
-       pb_log("%s: TODO\n", __func__);
+       pb_debug("%s: TODO\n", __func__);
 
        return 0;
 }
@@ -205,7 +204,7 @@ static int run(struct pbt_client *client)
                int result = waiter_poll(client->waitset);
 
                if (result < 0) {
-                       pb_log("%s: poll: %s\n", __func__, strerror(errno));
+                       pb_log_fn("poll: %s\n", strerror(errno));
                        break;
                }
 
@@ -305,7 +304,7 @@ int main(int argc, char *argv[])
        result += sigaction(SIGWINCH, &sa, NULL);
 
        if (result) {
-               pb_log("%s sigaction failed.\n", __func__);
+               pb_log_fn("sigaction failed.\n");
                return EXIT_FAILURE;
        }