]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/main-generic.c
lib/log: Switch to pb_log_fn
[petitboot] / ui / twin / main-generic.c
index 8ddec9ef2cd790044754196508114d08bf919e4b..a85cace0b8581c263881ff0285240b6a175282f8 100644 (file)
@@ -204,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;
                }
 
@@ -304,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;
        }