]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
README: Fix include file location for plugin
authorMinwoo Im <minwoo.im@samsung.com>
Tue, 18 Feb 2020 06:55:00 +0000 (15:55 +0900)
committerKeith Busch <kbusch@kernel.org>
Tue, 18 Feb 2020 14:38:52 +0000 (07:38 -0700)
If the CMD_INC_FILE is defined with file name without location, the
following error will happen.

In file included from plugins/foo/foo-nvme.h:17:0,
                 from plugins/foo/foo-nvme.c:4:
./define_cmd.h:12:34: fatal error: foo-nvme.h: No such file or directory
 #include CMD_INCLUDE(CMD_INC_FILE)
                                  ^

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
README.md

index 5f1d53c443749749a62dfc24eb2afc8f027c0a74..b4d2574213c899a2675c2b50e800f78bbd589290 100644 (file)
--- a/README.md
+++ b/README.md
@@ -176,7 +176,7 @@ is a basic example on how to start this:
 File: foo-plugin.h
 ```c
 #undef CMD_INC_FILE
-#define CMD_INC_FILE foo-plugin
+#define CMD_INC_FILE plugins/foo/foo-plugin
 
 #if !defined(FOO) || defined(CMD_HEADER_MULTI_READ)
 #define FOO