]> granicus.if.org Git - strace/blobdiff - dirent.c
nlattr: add unsigned int decoders that print in hex form
[strace] / dirent.c
index 32d2ed4c0b4892aa8573fcfdc2ac6ebb17e0e2d0..2ab626bf7819a8104a84dede0052945eac4c6118 100644 (file)
--- a/dirent.c
+++ b/dirent.c
@@ -4,6 +4,7 @@
  * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
  * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
  * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -131,10 +132,7 @@ SYS_FUNC(getdents)
                                zero_extend_signed_to_ull(d->d_off),
                                d->d_reclen);
 
-                       if (print_quoted_string(d->d_name, d_name_len,
-                                               QUOTE_0_TERMINATED) > 0) {
-                               tprints("...");
-                       }
+                       print_quoted_cstring(d->d_name, d_name_len);
 
                        tprints(", d_type=");
                        if (oob)