[PATCH v2] scripts: printing file name correctly

2016-11-29 Thread Maninder Singh
Currently we are printing file name wrongly. pos->file ? (char *) pos->file : "") It should be pos->file->name, and secondly if we got NULL file struture,we will anyway derefer it in last printf. So, Fixing the same. caught with static analysis tool. Signed-off-by: Maninder Singh

[PATCH v2] scripts: printing file name correctly

2016-11-29 Thread Maninder Singh
Currently we are printing file name wrongly. pos->file ? (char *) pos->file : "") It should be pos->file->name, and secondly if we got NULL file struture,we will anyway derefer it in last printf. So, Fixing the same. caught with static analysis tool. Signed-off-by: Maninder Singh