X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_pcc.c;h=f538e0258d818b1af78f222dd691f529604a7b98;hb=4e41ef7e1632e2223d4b8cb7ee3f02d424d713ff;hp=398239d89e6b97aaca8a2c6cf6264bc36f6d2a18;hpb=2dadefb4148f753dd93ee1dbebb3aac49bda2f8d;p=fs%2Flustre-release.git diff --git a/lustre/utils/liblustreapi_pcc.c b/lustre/utils/liblustreapi_pcc.c index 398239d..f538e02 100644 --- a/lustre/utils/liblustreapi_pcc.c +++ b/lustre/utils/liblustreapi_pcc.c @@ -344,7 +344,7 @@ int llapi_pccdev_set(const char *mntpath, const char *cmd) rc = llapi_getname(mntpath, buf, sizeof(buf)); if (rc < 0) { llapi_error(LLAPI_MSG_ERROR, rc, - "cannot get name for '%s'\n", mntpath); + "cannot get name for '%s'", mntpath); return rc; } @@ -365,12 +365,12 @@ int llapi_pccdev_set(const char *mntpath, const char *cmd) rc = errno; if (errno != EIO) llapi_error(LLAPI_MSG_ERROR, rc, - "error: setting llite.%s.pcc=\"%s\"\n", + "error: setting llite.%s.pcc='%s'", buf, cmd); } else if (count < strlen(cmd)) { /* Truncate case */ rc = -EINVAL; llapi_error(LLAPI_MSG_ERROR, rc, - "setting llite.%s.pcc=\"%s\": wrote only %zd\n", + "setting llite.%s.pcc='%s': wrote only %zd", buf, cmd, count); } close(fd); @@ -394,7 +394,7 @@ int llapi_pccdev_get(const char *mntpath) rc = llapi_getname(mntpath, pathbuf, sizeof(pathbuf)); if (rc < 0) { llapi_error(LLAPI_MSG_ERROR, rc, - "cannot get name for '%s'\n", mntpath); + "cannot get name for '%s'", mntpath); return rc; } @@ -407,7 +407,7 @@ int llapi_pccdev_get(const char *mntpath) if (fd < 0) { rc = -errno; llapi_error(LLAPI_MSG_ERROR, rc, - "error: pccdev_get: opening '%s'\n", + "error: pccdev_get: opening '%s'", path.gl_pathv[0]); goto out_free_param; } @@ -416,7 +416,7 @@ int llapi_pccdev_get(const char *mntpath) if (buf == NULL) { rc = -ENOMEM; llapi_error(LLAPI_MSG_ERROR, rc, - "error: pccdev_get: allocating '%s' buffer\n", + "error: pccdev_get: allocating '%s' buffer", path.gl_pathv[0]); goto out_close; } @@ -430,8 +430,7 @@ int llapi_pccdev_get(const char *mntpath) rc = -errno; if (errno != EIO) { llapi_error(LLAPI_MSG_ERROR, rc, - "error: pccdev_get: " - "reading failed\n"); + "error: pccdev_get: reading failed"); } break; } @@ -439,7 +438,7 @@ int llapi_pccdev_get(const char *mntpath) if (fwrite(buf, 1, count, stdout) != count) { rc = -errno; llapi_error(LLAPI_MSG_ERROR, rc, - "error: get_param: write to stdout\n"); + "error: get_param: write to stdout"); break; } }