1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

debug: start with upper case

Use upper case letter to start sentence.
Also drop unneded check for vg as it's already non-null.
This commit is contained in:
Zdenek Kabelac 2021-03-16 14:16:36 +01:00
parent 94701b700b
commit 8b2cdd8d3a

View File

@ -4557,7 +4557,7 @@ static bool _scan_text_mismatch(struct cmd_context *cmd, const char *vgname, con
continue; continue;
if (!(dev = mda_get_device(mda))) { if (!(dev = mda_get_device(mda))) {
log_debug("rescan for text mismatch - no mda dev"); log_debug("Rescan for text mismatch - no mda dev.");
goto out; goto out;
} }
@ -4570,24 +4570,24 @@ static bool _scan_text_mismatch(struct cmd_context *cmd, const char *vgname, con
* Invalidate mda_header in bcache so it will be reread from disk. * Invalidate mda_header in bcache so it will be reread from disk.
*/ */
if (!dev_invalidate_bytes(dev, 4096, 512)) { if (!dev_invalidate_bytes(dev, 4096, 512)) {
log_debug("rescan for text mismatch - cannot invalidate"); log_debug("Rescan for text mismatch - cannot invalidate.");
goto out; goto out;
} }
if (!(mdah = raw_read_mda_header(cmd->fmt, area, 1, 0, &bad_fields))) { if (!(mdah = raw_read_mda_header(cmd->fmt, area, 1, 0, &bad_fields))) {
log_debug("rescan for text mismatch - no mda header"); log_debug("Rescan for text mismatch - no mda header.");
goto out; goto out;
} }
rlocn = mdah->raw_locns; rlocn = mdah->raw_locns;
if (bad_fields) { if (bad_fields) {
log_debug("rescan for text mismatch - bad_fields"); log_debug("Rescan for text mismatch - bad_fields.");
} else if (rlocn->checksum != mda->scan_text_checksum) { } else if (rlocn->checksum != mda->scan_text_checksum) {
log_debug("rescan for text checksum mismatch - now %x prev %x", log_debug("Rescan for text checksum mismatch - now %x prev %x.",
rlocn->checksum, mda->scan_text_checksum); rlocn->checksum, mda->scan_text_checksum);
} else if (rlocn->offset != mda->scan_text_offset) { } else if (rlocn->offset != mda->scan_text_offset) {
log_debug("rescan for text offset mismatch - now %llu prev %llu", log_debug("Rescan for text offset mismatch - now %llu prev %llu.",
(unsigned long long)rlocn->offset, (unsigned long long)rlocn->offset,
(unsigned long long)mda->scan_text_offset); (unsigned long long)mda->scan_text_offset);
} else { } else {
@ -4608,12 +4608,12 @@ static bool _scan_text_mismatch(struct cmd_context *cmd, const char *vgname, con
if (ret) { if (ret) {
/* shouldn't happen */ /* shouldn't happen */
log_debug("rescan for text mismatch - no mdas"); log_debug("Rescan for text mismatch - no mdas.");
goto out; goto out;
} }
out: out:
if (!ret) if (!ret)
log_debug("rescan skipped - unchanged offset %llu checksum %x", log_debug("Rescan skipped - unchanged offset %llu checksum %x.",
(unsigned long long)mda->scan_text_offset, (unsigned long long)mda->scan_text_offset,
mda->scan_text_checksum); mda->scan_text_checksum);
@ -4809,7 +4809,7 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
if (!vg) if (!vg)
continue; continue;
if (vg && !vg_ret) { if (!vg_ret) {
vg_ret = vg; vg_ret = vg;
dev_ret = mda_dev; dev_ret = mda_dev;
continue; continue;