Baoquan He bbe46f9e22 mkdumprd: add function perror_exit
We use function to pass stdout to a variable, like get_persistent_dev
but it will echo some error message and exit in some cases, instead of
redirect all the echo to stderr, this patch adds a function perror_exit
to fix this and simplify/cleanup related code.

Also add another function perror() for cases where no need to exit.

Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
2013-04-02 10:34:05 +08:00
2013-01-28 14:02:09 +08:00
2012-05-28 09:50:47 +08:00
2013-04-02 10:26:39 +08:00
2013-04-02 10:26:39 +08:00
2012-07-12 11:15:35 +08:00
2013-04-02 10:26:39 +08:00
2013-03-27 10:44:43 +08:00
2013-04-02 10:34:05 +08:00
2013-02-16 15:19:41 +08:00
Description
Languages
Shell 92.1%
Roff 6.7%
Makefile 1.2%