libio/tst-getdelim: fix verbose print

Message ID 20240814100127.454366-1-fberat@redhat.com
State Changes Requested
Headers
Series libio/tst-getdelim: fix verbose print |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
redhat-pt-bot/TryBot-32bit success Build for i686
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Test passed

Commit Message

Frederic Berat Aug. 14, 2024, 10:01 a.m. UTC
  Print "null character" instead of the "NUL" abbreviation.
---
 libio/tst-getdelim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Florian Weimer Aug. 19, 2024, 1:24 p.m. UTC | #1
* Frédéric Bérat:

> Print "null character" instead of the "NUL" abbreviation.
> ---
>  libio/tst-getdelim.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libio/tst-getdelim.c b/libio/tst-getdelim.c
> index db15bf9285..19191dec3f 100644
> --- a/libio/tst-getdelim.c
> +++ b/libio/tst-getdelim.c
> @@ -37,7 +37,7 @@ do_test (void)
>    TEST_VERIFY (errno == EINVAL);
>  
>    /* Test getdelim with NUL as delimiter */
> -  verbose_printf ("Testing NUL delimiter\n");
> +  verbose_printf ("Testing null character delimiter\n");
>    char *lineptr = NULL;
>    size_t linelen = 0;
>    char membuf[] = "abc\0d\nef\0";

I assume Andreas suggested to change both occurrences?

Thanks,
Florian
  

Patch

diff --git a/libio/tst-getdelim.c b/libio/tst-getdelim.c
index db15bf9285..19191dec3f 100644
--- a/libio/tst-getdelim.c
+++ b/libio/tst-getdelim.c
@@ -37,7 +37,7 @@  do_test (void)
   TEST_VERIFY (errno == EINVAL);
 
   /* Test getdelim with NUL as delimiter */
-  verbose_printf ("Testing NUL delimiter\n");
+  verbose_printf ("Testing null character delimiter\n");
   char *lineptr = NULL;
   size_t linelen = 0;
   char membuf[] = "abc\0d\nef\0";