Skip to contentSkip to conversation

Also honour abort_on_internal_errors when log_fn is set.

PATCH New Petr Rockai 2 participants 2 messages Mar 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Also honour abort_on_internal_errors when log_fn is set.

Hi,

fairly trivial patch. I'll check in later if there are no objections.

log/log.c +2 -1
diff -u -p -r1.57 log.c
@@ -231,7 +231,8 @@ void print_log(int level, const char *fi
 
 	if (_lvm2_log_fn) {
 		_lvm2_log_fn(level, file, line, 0, message);
-
+		if (fatal_internal_error)
+			abort();
 		return;
 	}
 

Yours,
Petr.

#1 lore raw

PATCH 1/1 Also honour abort_on_internal_errors when log_fn is set.

Quoted 1 line · Peter Rockai

fairly trivial patch. I'll check in later if there are no objections.

Ack

Alasdair