]> granicus.if.org Git - strace/blobdiff - lookup_dcookie.c
Introduce generic STRINGIFY and STRINGIFY_VAL macros
[strace] / lookup_dcookie.c
index c95e593994e81e2d3e60aa54e82eff6471ed4995..4e21d5ff14e6f6b1610bd6309f2e604068c4acce 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -40,10 +41,10 @@ SYS_FUNC(lookup_dcookie)
        if (syserror(tcp))
                printaddr(tcp->u_arg[argn]);
        else
-               printstr(tcp, tcp->u_arg[argn], tcp->u_rval);
+               printstrn(tcp, tcp->u_arg[argn], tcp->u_rval);
 
        /* len */
-       tprintf(", %lu", tcp->u_arg[argn + 1]);
+       tprintf(", %" PRI_klu, tcp->u_arg[argn + 1]);
 
        return 0;
 }