diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c
index 579ece4fa584506a882e9e2bdd3e7fbb28d3b0c1..cd8a2f00a97ea1834cb98f91d0acc50bc4c471ff 100644
--- a/scripts/kconfig/expr.c
+++ b/scripts/kconfig/expr.c
@@ -1098,6 +1098,8 @@ void expr_fprint(struct expr *e, FILE *out)
 static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *str)
 {
 	str_append((struct gstr*)data, str);
+	if (sym)
+		str_printf((struct gstr*)data, " [=%s]", sym_get_string_value(sym));
 }
 
 void expr_gstr_print(struct expr *e, struct gstr *gs)