diff mbox series

[COMMITTED] libio/bug-wsetpos: Make the error message match the causing function

Message ID cb1b0f03-29e0-d543-5c33-e5bcbc6c8178@redhat.com
State New
Headers show
Series [COMMITTED] libio/bug-wsetpos: Make the error message match the causing function | expand

Commit Message

Maciej W. Rozycki May 13, 2024, 11:55 a.m. UTC
This test case calls `fopen':

  FILE *fp = fopen (temp_file, "r");

however if that fails it reports `fdopen' being the origin of the error.
Adjust the message to say `fopen' then.
---
Committed as obvious using common sense judgement, following an unlisted 
rule from the nonexhaustive list of items which have community consensus.
---
 libio/bug-wsetpos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libio/bug-wsetpos.c b/libio/bug-wsetpos.c
index 0fc373ba49..8d47e9266f 100644
--- a/libio/bug-wsetpos.c
+++ b/libio/bug-wsetpos.c
@@ -37,7 +37,7 @@  do_test (void)
 
   if (fp == NULL)
     {
-      printf ("fdopen: %m\n");
+      printf ("fopen: %m\n");
       return 1;
     }