summaryrefslogtreecommitdiffstats
path: root/tools/reporter.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-02-13 11:25:56 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-02-13 11:25:56 +0000
commit73e62cdc110e644616acf4a10b693768818a8ba5 (patch)
treef969ae3482edc3f7d27cac17cf321a7438129c94 /tools/reporter.c
parent74b5744b4bdcef20589fbc987dca61c33a5a33d5 (diff)
downloadlvm2-73e62cdc110e644616acf4a10b693768818a8ba5.tar.gz
lvm2-73e62cdc110e644616acf4a10b693768818a8ba5.tar.xz
lvm2-73e62cdc110e644616acf4a10b693768818a8ba5.zip
Add internal error for unsupported code paths
Patch mainly helps static analyzers to better work with code paths lvm code should never trigger.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r--tools/reporter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/reporter.c b/tools/reporter.c
index a5272538..1c8e39d1 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -315,6 +315,9 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
"report/pvsegs_cols_verbose",
DEFAULT_PVSEGS_COLS_VERB);
break;
+ default:
+ log_error(INTERNAL_ERROR "Unknown report type.");
+ return ECMD_FAILED;
}
/* If -o supplied use it, else use default for report_type */