In evaluate_symbol_type(), an error message is issued if a SYM_UNINITIALIZED symbol is reached. Good. However, the error message display the address of the incriminated symbol which isn't much useful for finding the origin of the problem. Fix this by displaying the symbol's typename instead. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symbol.c b/symbol.c index 6cfaf2c8f..e14d2306a 100644 --- a/symbol.c +++ b/symbol.c @@ -504,7 +504,7 @@ struct symbol *examine_symbol_type(struct symbol * sym) sparse_error(sym->pos, "ctype on preprocessor command? (%s)", show_ident(sym->ident)); return NULL; case SYM_UNINITIALIZED: - sparse_error(sym->pos, "ctype on uninitialized symbol %p", sym); + sparse_error(sym->pos, "ctype on uninitialized symbol '%s'", show_typename(sym)); return NULL; case SYM_RESTRICT: examine_base_type(sym); -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html