summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-02-27 11:31:30 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-02-27 11:31:30 +0000
commitc5b8faf3b10268d6269b4ed2e4fb21326a6af315 (patch)
tree933e3a3c596cffeee2b49cf15fbd9c7787596c2d
parent8918bf243090820eef99e7ff6f92205681163c51 (diff)
downloadlvm2-c5b8faf3b10268d6269b4ed2e4fb21326a6af315.tar.gz
lvm2-c5b8faf3b10268d6269b4ed2e4fb21326a6af315.tar.xz
lvm2-c5b8faf3b10268d6269b4ed2e4fb21326a6af315.zip
Explicitely ignore fail error on hash_insert
We cannot do anything better here anyway - we are already in logging function, so just ignore this issue here - it will most likely stop application later.
-rw-r--r--lib/log/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log/log.c b/lib/log/log.c
index 66ef76c5..d90815bc 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -262,7 +262,7 @@ void print_log(int level, const char *file, int line, int dm_errno,
if (_duplicated) {
if (dm_hash_lookup(_duplicated, message))
level = _LOG_NOTICE;
- dm_hash_insert(_duplicated, message, (void*)1);
+ (void) dm_hash_insert(_duplicated, message, (void*)1);
}
}