]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/path: simplify debug message
authorKarel Zak <kzak@redhat.com>
Fri, 25 May 2018 11:20:22 +0000 (13:20 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2018 11:07:46 +0000 (13:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/path.c

index 9f351ed05f81e3332e3b4ac9cc6e92d76df90578..d35262b891d4232e69f644861c53f484d40ce991 100644 (file)
@@ -296,7 +296,7 @@ int ul_path_open(struct path_cxt *pc, int flags, const char *path)
 
        if (!pc) {
                fd = open(path, flags);
-               DBG(CXT, ul_debug("opening [%d] '%s'", flags, path));
+               DBG(CXT, ul_debug("opening '%s'", path));
        } else {
                int dir = ul_path_get_dirfd(pc);
                if (dir < 0)
@@ -309,7 +309,7 @@ int ul_path_open(struct path_cxt *pc, int flags, const char *path)
                    && pc->redirect_on_enoent(pc, path, &dir) == 0)
                        fd = openat(dir, path, flags);
 
-               DBG(CXT, ul_debugobj(pc, "opening [%d] '%s'", flags, path));
+               DBG(CXT, ul_debugobj(pc, "opening '%s'", path));
        }
        return fd;
 }