From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - debug: change message level
Date: Wed, 15 Sep 2021 13:26:31 +0000 (GMT) [thread overview]
Message-ID: <20210915132631.06C833858418@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=944e560e960964217c7525a18c60bf17ca046e0c
Commit: 944e560e960964217c7525a18c60bf17ca046e0c
Parent: ed59b50512f966125b972f9d2eafee3058f8063f
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Wed Sep 15 14:04:04 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Sep 15 15:24:56 2021 +0200
debug: change message level
These message do not cause command error - switch to debug.
---
lib/mm/memlock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
index 1e6cedc5f..3d1a3927c 100644
--- a/lib/mm/memlock.c
+++ b/lib/mm/memlock.c
@@ -357,7 +357,7 @@ static int _memlock_maps(struct cmd_context *cmd, lvmlock_t lock, size_t *mstats
_maps_buffer = line;
}
if (lseek(_maps_fd, 0, SEEK_SET))
- log_sys_error("lseek", _procselfmaps);
+ log_sys_debug("lseek", _procselfmaps);
for (len = 0 ; len < _maps_len; len += n) {
if (!(n = read(_maps_fd, _maps_buffer + len, _maps_len - len)))
break; /* EOF */
@@ -561,7 +561,7 @@ static void _unlock_mem(struct cmd_context *cmd)
if (!_use_mlockall) {
_restore_mmap();
if (close(_maps_fd))
- log_sys_error("close", _procselfmaps);
+ log_sys_debug("close", _procselfmaps);
free(_maps_buffer);
_maps_buffer = NULL;
if (_mstats < unlock_mstats) {
reply other threads:[~2021-09-15 13:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210915132631.06C833858418@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.