public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-20] gcov: Use xstrerror()
@ 2022-04-28 19:42 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-04-28 19:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:92475ea84f69ad2bb92dbecd6b5c33be174c4777
commit r13-20-g92475ea84f69ad2bb92dbecd6b5c33be174c4777
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Thu Mar 31 10:50:50 2022 +0200
gcov: Use xstrerror()
libgcc/
* libgcov-util.c (ftw_read_file): Improve notice using xstrerror().
(gcov_profile_merge_stream): Likewise.
Diff:
---
libgcc/libgcov-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libgcc/libgcov-util.c b/libgcc/libgcov-util.c
index 250dddd8e21..ba4670b3c0d 100644
--- a/libgcc/libgcov-util.c
+++ b/libgcc/libgcov-util.c
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-28 19:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 19:42 [gcc r13-20] gcov: Use xstrerror() Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).