summaryrefslogtreecommitdiffstats
path: root/commands/clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/clk.c')
-rw-r--r--commands/clk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/clk.c b/commands/clk.c
index e9459a3fd3..f862c45b2a 100644
--- a/commands/clk.c
+++ b/commands/clk.c
@@ -97,7 +97,7 @@ static int do_clk_get_rate(int argc, char *argv[])
}
if (optind == argc) {
- fprintf(stderr, "No clock name given\n");
+ eprintf("No clock name given\n");
return COMMAND_ERROR_USAGE;
}
@@ -110,7 +110,7 @@ static int do_clk_get_rate(int argc, char *argv[])
if (variable_name) {
char *t;
- t = asprintf("%lu", rate);
+ t = basprintf("%lu", rate);
setenv(variable_name, t);
free(t);
} else