]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ConfUtils.cc parse_file: fix function name in errors
authorDan Mick <dan.mick@redhat.com>
Mon, 24 Apr 2017 22:36:00 +0000 (15:36 -0700)
committerDan Mick <dan.mick@redhat.com>
Mon, 24 Apr 2017 22:43:26 +0000 (15:43 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/common/ConfUtils.cc

index ff9055a8164c0f4807b7173cadf5f80607615c54..bd964edeb05400d63a088806c04e3e10e8bb28ea 100644 (file)
@@ -112,14 +112,14 @@ parse_file(const std::string &fname, std::deque<std::string> *errors,
   if (fstat(fileno(fp), &st_buf)) {
     ret = -errno;
     ostringstream oss;
-    oss << "read_conf: failed to fstat '" << fname << "': " << cpp_strerror(ret);
+    oss << "parse_file: failed to fstat '" << fname << "': " << cpp_strerror(ret);
     errors->push_back(oss.str());
     goto done;
   }
 
   if (st_buf.st_size > MAX_CONFIG_FILE_SZ) {
     ostringstream oss;
-    oss << "read_conf: config file '" << fname << "' is " << st_buf.st_size
+    oss << "parse_file: config file '" << fname << "' is " << st_buf.st_size
        << " bytes, but the maximum is " << MAX_CONFIG_FILE_SZ;
     errors->push_back(oss.str());
     ret = -EINVAL;
@@ -137,14 +137,14 @@ parse_file(const std::string &fname, std::deque<std::string> *errors,
     if (ferror(fp)) {
       ret = -errno;
       ostringstream oss;
-      oss << "read_conf: fread error while reading '" << fname << "': "
+      oss << "parse_file: fread error while reading '" << fname << "': "
          << cpp_strerror(ret);
       errors->push_back(oss.str());
       goto done;
     }
     else {
       ostringstream oss;
-      oss << "read_conf: unexpected EOF while reading '" << fname << "': "
+      oss << "parse_file: unexpected EOF while reading '" << fname << "': "
          << "possible concurrent modification?";
       errors->push_back(oss.str());
       ret = -EIO;