pan/decode: Print errors when closing dump file
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10422>
This commit is contained in:
@@ -189,7 +189,9 @@ static void
|
||||
pandecode_dump_file_close(void)
|
||||
{
|
||||
if (pandecode_dump_stream && pandecode_dump_stream != stderr) {
|
||||
fclose(pandecode_dump_stream);
|
||||
if (fclose(pandecode_dump_stream))
|
||||
perror("pandecode: dump file");
|
||||
|
||||
pandecode_dump_stream = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user