summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/expr.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-05 19:34:41 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-08 14:10:10 -0500
commit9e3e10c725360b9d07018cfcd5b7b6b7d325fae5 (patch)
treec3de9ca1974443fb36319e74ac0b7b893a3a39eb /scripts/kconfig/expr.c
parentf3ff6fb5db68bcd460e9880d5fb4902520dd645b (diff)
kconfig: send error messages to stderr
These messages should be directed to stderr. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
Diffstat (limited to 'scripts/kconfig/expr.c')
-rw-r--r--scripts/kconfig/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c
index 2ba332b3fed7..d45381986ac7 100644
--- a/scripts/kconfig/expr.c
+++ b/scripts/kconfig/expr.c
@@ -94,7 +94,7 @@ struct expr *expr_copy(const struct expr *org)
94 e->right.expr = expr_copy(org->right.expr); 94 e->right.expr = expr_copy(org->right.expr);
95 break; 95 break;
96 default: 96 default:
97 printf("can't copy type %d\n", e->type); 97 fprintf(stderr, "can't copy type %d\n", e->type);
98 free(e); 98 free(e);
99 e = NULL; 99 e = NULL;
100 break; 100 break;
@@ -127,7 +127,7 @@ void expr_free(struct expr *e)
127 expr_free(e->right.expr); 127 expr_free(e->right.expr);
128 break; 128 break;
129 default: 129 default:
130 printf("how to free type %d?\n", e->type); 130 fprintf(stderr, "how to free type %d?\n", e->type);
131 break; 131 break;
132 } 132 }
133 free(e); 133 free(e);