1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-18 03:33:15 +03:00

Store any errno and error messages issued while processing each command.

(Enabled by default while we test it, but in due course we'll only store
the error messages when we need to.)
This commit is contained in:
Alasdair Kergon
2009-07-15 23:57:54 +00:00
parent 7da36611dc
commit 0ed40c04c7
8 changed files with 70 additions and 14 deletions

View File

@@ -15,7 +15,8 @@
#include "lvm2cmd.h"
/* All output gets passed to this function line-by-line */
void test_log_fn(int level, const char *file, int line, const char *format)
void test_log_fn(int level, int dm_errno, const char *file, int line,
const char *format)
{
/* Extract and process output here rather than printing it */