summaryrefslogtreecommitdiffstats
path: root/common/console_common.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-06-13 16:04:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-06-13 16:04:40 +0200
commitb2cb923506b6532ecd06a48e57757d24ccf4940b (patch)
tree9a8c76f8c65b9086f58ea1d43d84fa9e093d9a3c /common/console_common.c
parent7917ad2b03127f29b463b4d72dc063491ee41a87 (diff)
downloadbarebox-b2cb923506b6532ecd06a48e57757d24ccf4940b.tar.gz
Revert "globalvar: make globalvar functions more consistent"
This reverts commit 1b4a05c9263ae26083526acfabdea1ef96531a1d.
Diffstat (limited to 'common/console_common.c')
-rw-r--r--common/console_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/console_common.c b/common/console_common.c
index b36b3ff..d051458 100644
--- a/common/console_common.c
+++ b/common/console_common.c
@@ -148,10 +148,10 @@ int dev_printf(int level, const struct device_d *dev, const char *format, ...)
static int loglevel_init(void)
{
if (IS_ENABLED(CONFIG_LOGBUF))
- globalvar_add_simple_uint32("log_max_messages",
- &barebox_log_max_messages, "%u");
+ globalvar_add_simple_int("log_max_messages",
+ &barebox_log_max_messages, "%d");
- return globalvar_add_simple_uint32("loglevel", &barebox_loglevel, "%u");
+ return globalvar_add_simple_int("loglevel", &barebox_loglevel, "%d");
}
device_initcall(loglevel_init);