diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:55:09 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:55:09 +0100 |
commit | 47ce0e3550a2d1ce8407e3643ceb595657ac4d79 (patch) | |
tree | 30195d18c79b81db61c480991333dbf1cdd60371 | |
parent | 57d1740e24714ff35b146955fd0b0d4bcf975d8d (diff) | |
download | xen-47ce0e3550a2d1ce8407e3643ceb595657ac4d79.tar.gz xen-47ce0e3550a2d1ce8407e3643ceb595657ac4d79.tar.bz2 xen-47ce0e3550a2d1ce8407e3643ceb595657ac4d79.zip |
libxl: libxl__xs_path_cleanup don't print error if ENOENT
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
-rw-r--r-- | tools/libxl/libxl_xshelp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c index 7ca17328f9..855ac85611 100644 --- a/tools/libxl/libxl_xshelp.c +++ b/tools/libxl/libxl_xshelp.c @@ -219,7 +219,8 @@ int libxl__xs_path_cleanup(libxl__gc *gc, xs_transaction_t t, char *user_path) path = libxl__strdup(gc, user_path); if (!xs_rm(CTX->xsh, t, path)) { - LOGE(DEBUG, "unable to remove path %s", path); + if (errno != ENOENT) + LOGE(DEBUG, "unable to remove path %s", path); rc = ERROR_FAIL; goto out; } @@ -235,7 +236,8 @@ int libxl__xs_path_cleanup(libxl__gc *gc, xs_transaction_t t, char *user_path) if (!libxl__xs_directory(gc, t, path, &nb) || nb != 0) break; if (!xs_rm(CTX->xsh, t, path)) { - LOGE(DEBUG, "unable to remove path %s", path); + if (errno != ENOENT) + LOGE(DEBUG, "unable to remove path %s", path); rc = ERROR_FAIL; goto out; } |