mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
gcov: Use xstrerror()
libgcc/ * libgcov-util.c (ftw_read_file): Improve notice using xstrerror(). (gcov_profile_merge_stream): Likewise.
This commit is contained in:
parent
210e32b60b
commit
92475ea84f
@ -405,7 +405,7 @@ ftw_read_file (const char *filename,
|
||||
|
||||
if (!gcov_open (filename, 1))
|
||||
{
|
||||
fnotice (stderr, "%s:cannot open\n", filename);
|
||||
fnotice (stderr, "%s:cannot open:%s\n", filename, xstrerror (errno));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -819,7 +819,7 @@ gcov_profile_merge_stream (const char *filename, int w1, int w2)
|
||||
|
||||
if (!gcov_open (filename, 1))
|
||||
{
|
||||
fnotice (stderr, "%s:cannot open\n", filename);
|
||||
fnotice (stderr, "%s:cannot open:%s\n", filename, xstrerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user