diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-01 10:31:00 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-01 15:32:52 +0800 |
commit | 089d0a6eb769d531129a7cd1061493a1a24b4bef (patch) | |
tree | 62e6b58e6a9cd9b19ac9f7a8986b9d01cfe5ec70 /ui/twin | |
parent | 896da834e7126759ef69c33347055c593abedde3 (diff) | |
download | talos-petitboot-089d0a6eb769d531129a7cd1061493a1a24b4bef.tar.gz talos-petitboot-089d0a6eb769d531129a7cd1061493a1a24b4bef.zip |
logging: Clean up debug logs
We have quite a few pb_logs which should be pb_debug. This change moves
developer-specific info to pb_debug.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/twin')
-rw-r--r-- | ui/twin/main-generic.c | 2 | ||||
-rw-r--r-- | ui/twin/pbt-client.c | 8 | ||||
-rw-r--r-- | ui/twin/pbt-scr.c | 4 | ||||
-rw-r--r-- | ui/twin/pbt-scr.h | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/ui/twin/main-generic.c b/ui/twin/main-generic.c index 649ad00..2301e31 100644 --- a/ui/twin/main-generic.c +++ b/ui/twin/main-generic.c @@ -58,7 +58,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; } diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c index dba6110..21ed524 100644 --- a/ui/twin/pbt-client.c +++ b/ui/twin/pbt-client.c @@ -58,7 +58,7 @@ static int pbt_client_boot(struct pbt_item *item) int result; struct pb_opt_data *opt_data = pbt_opt_data_from_item(item); - pb_log("%s: %s\n", __func__, pbt_item_name(item)); + pb_debug("%s: %s\n", __func__, pbt_item_name(item)); pbt_frame_status_printf(&item->pbt_client->frame, "Booting %s...", pbt_item_name(item)); @@ -88,7 +88,7 @@ static int pbt_device_add(struct device *dev, struct pbt_client *client) struct pbt_quad q; const char *icon_file; - pb_log("%s: %p %s: n_options %d\n", __func__, dev, dev->id, + pb_debug("%s: %p %s: n_options %d\n", __func__, dev, dev->id, dev->n_options); pb_protocol_dump_device(dev, "", pb_log_get_stream()); @@ -181,7 +181,7 @@ static void pbt_device_remove(struct device *dev, struct pbt_client *client) struct pbt_item *next_item; struct pbt_item *i; - pb_log("%s: %p %s: n_options %d\n", __func__, dev, dev->id, + pb_debug("%s: %p %s: n_options %d\n", __func__, dev, dev->id, dev->n_options); pb_protocol_dump_device(dev, "", pb_log_get_stream()); @@ -245,7 +245,7 @@ static struct discover_client_ops pbt_client_ops = { static void pbt_client_destructor(struct pbt_client *client) { - pb_log("%s\n", __func__); + pb_debug("%s\n", __func__); // move to screen twin_x11_destroy(twin_ctx); talloc_free(client->discover_client); diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c index e093c3c..79f6792 100644 --- a/ui/twin/pbt-scr.c +++ b/ui/twin/pbt-scr.c @@ -361,7 +361,7 @@ static int pbt_twin_waiter_cb(struct pbt_twin_ctx *twin_ctx) static void pbt_scr_destructor(struct pbt_scr *scr) { - pb_log("%s\n", __func__); + pb_debug("%s\n", __func__); twin_x11_destroy(scr->twin_ctx.x11); // FIXME: need cursor cleanup??? @@ -409,7 +409,7 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, goto fail_ctx_create; } - pb_log("%s: x11: %p\n", __func__, scr->twin_ctx.x11); + pb_debug("%s: x11: %p\n", __func__, scr->twin_ctx.x11); assert(scr->twin_ctx.x11->screen); scr->tscreen = scr->twin_ctx.x11->screen; diff --git a/ui/twin/pbt-scr.h b/ui/twin/pbt-scr.h index 1198a59..2880ee1 100644 --- a/ui/twin/pbt-scr.h +++ b/ui/twin/pbt-scr.h @@ -33,9 +33,9 @@ # include <libtwin/twin_fbdev.h> #endif -#define DBG(fmt, args...) pb_log("DBG: " fmt, ## args) +#define DBG(fmt, args...) pb_debug("DBG: " fmt, ## args) #define DBGS(fmt, args...) \ - pb_log("DBG:%s:%d: " fmt, __func__, __LINE__, ## args) + pb_debug("DBG:%s:%d: " fmt, __func__, __LINE__, ## args) struct pbt_quad { twin_coord_t x; |