From cb0cc2999aeb0c38bba5f22b1718292a43d1ad67 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 31 Jan 2002 20:37:26 +0000 Subject: [PATCH] Display error when running unimplemented functions. --- tools/stub.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tools/stub.h b/tools/stub.h index 29ef469fa..908ee753b 100644 --- a/tools/stub.h +++ b/tools/stub.h @@ -4,12 +4,14 @@ * This file is released under the GPL. */ -int e2fsadm(int argc, char **argv) {return 1;} -int lvmdiskscan(int argc, char **argv) {return 1;} -int lvmsadc(int argc, char **argv) {return 1;} -int lvmsar(int argc, char **argv) {return 1;} -int pvdata(int argc, char **argv) {return 1;} -int pvmove(int argc, char **argv) {return 1;} -int vgmknodes(int argc, char **argv) {return 1;} -int vgsplit(int argc, char **argv) {return 1;} +#define unimplemented \ + { log_error("Command not implemented yet."); return ECMD_FAILED;} +int e2fsadm(int argc, char **argv) unimplemented +int lvmdiskscan(int argc, char **argv) unimplemented +int lvmsadc(int argc, char **argv) unimplemented +int lvmsar(int argc, char **argv) unimplemented +int pvdata(int argc, char **argv) unimplemented +int pvmove(int argc, char **argv) unimplemented +int vgmknodes(int argc, char **argv) unimplemented +int vgsplit(int argc, char **argv) unimplemented