summaryrefslogtreecommitdiffstats
path: root/cddl/usr.sbin/zfsd
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-05-29 00:40:29 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-05-29 00:40:29 +0000
commit996c4295dbb6ebc1b8025f370bf680d8242f9f8f (patch)
treeaaeaa5427c6443ca08baa7fa21371ef101a06619 /cddl/usr.sbin/zfsd
parent14e647f92cff60b3c1b2bb17446f6aead919266e (diff)
downloadFreeBSD-src-996c4295dbb6ebc1b8025f370bf680d8242f9f8f.zip
FreeBSD-src-996c4295dbb6ebc1b8025f370bf680d8242f9f8f.tar.gz
Avoid more literal-suffix errors with C++11
Diffstat (limited to 'cddl/usr.sbin/zfsd')
-rw-r--r--cddl/usr.sbin/zfsd/case_file.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cddl/usr.sbin/zfsd/case_file.cc b/cddl/usr.sbin/zfsd/case_file.cc
index 21e49c2..e7a4eb1 100644
--- a/cddl/usr.sbin/zfsd/case_file.cc
+++ b/cddl/usr.sbin/zfsd/case_file.cc
@@ -455,7 +455,7 @@ CaseFile::ActivateSpare() {
zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front());
if (zhp == NULL) {
syslog(LOG_ERR, "CaseFile::ActivateSpare: Could not find pool "
- "for pool_guid %"PRIu64".", (uint64_t)m_poolGUID);
+ "for pool_guid %" PRIu64".", (uint64_t)m_poolGUID);
return (false);
}
poolname = zpool_get_name(zhp);
@@ -639,7 +639,7 @@ CaseFile::DeSerializeSelector(const struct dirent *dirEntry)
uint64_t vdevGUID;
if (dirEntry->d_type == DT_REG
- && sscanf(dirEntry->d_name, "pool_%"PRIu64"_vdev_%"PRIu64".case",
+ && sscanf(dirEntry->d_name, "pool_%" PRIu64 "_vdev_%" PRIu64 ".case",
&poolGUID, &vdevGUID) == 2)
return (1);
return (0);
@@ -657,7 +657,7 @@ CaseFile::DeSerializeFile(const char *fileName)
uint64_t vdevGUID;
nvlist_t *vdevConf;
- sscanf(fileName, "pool_%"PRIu64"_vdev_%"PRIu64".case",
+ sscanf(fileName, "pool_%" PRIu64 "_vdev_%" PRIu64 ".case",
&poolGUID, &vdevGUID);
existingCaseFile = Find(Guid(poolGUID), Guid(vdevGUID));
if (existingCaseFile != NULL) {
@@ -999,7 +999,7 @@ CaseFile::Replace(const char* vdev_type, const char* path, bool isspare) {
zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front());
if (zhp == NULL) {
syslog(LOG_ERR, "CaseFile::Replace: could not find pool for "
- "pool_guid %"PRIu64".", (uint64_t)m_poolGUID);
+ "pool_guid %" PRIu64 ".", (uint64_t)m_poolGUID);
return (false);
}
poolname = zpool_get_name(zhp);
OpenPOWER on IntegriCloud