[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/5] contrib: Add spaces around operator
From: |
zhouyang |
Subject: |
[PATCH v3 3/5] contrib: Add spaces around operator |
Date: |
Mon, 18 Jan 2021 11:10:02 +0800 |
I am reading contrib related code and found some style problems while
check the code using checkpatch.pl. This commit fixs the issue below:
ERROR: spaces required around that '*'
Signed-off-by: zhouyang <zhouyang789@huawei.com>
---
contrib/ivshmem-server/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/ivshmem-server/main.c b/contrib/ivshmem-server/main.c
index ee08c4ced0..224dbeb547 100644
--- a/contrib/ivshmem-server/main.c
+++ b/contrib/ivshmem-server/main.c
@@ -17,7 +17,7 @@
#define IVSHMEM_SERVER_DEFAULT_PID_FILE "/var/run/ivshmem-server.pid"
#define IVSHMEM_SERVER_DEFAULT_UNIX_SOCK_PATH "/tmp/ivshmem_socket"
#define IVSHMEM_SERVER_DEFAULT_SHM_PATH "ivshmem"
-#define IVSHMEM_SERVER_DEFAULT_SHM_SIZE (4*1024*1024)
+#define IVSHMEM_SERVER_DEFAULT_SHM_SIZE (4 * 1024 * 1024)
#define IVSHMEM_SERVER_DEFAULT_N_VECTORS 1
/* used to quit on signal SIGTERM */
--
2.23.0
- [PATCH v3 0/5] Fix some style problems in contrib, zhouyang, 2021/01/17
- [PATCH v3 3/5] contrib: Add spaces around operator,
zhouyang <=
- [PATCH v3 2/5] contrib: Fix some code style problems, ERROR: "foo * bar" should be "foo *bar", zhouyang, 2021/01/17
- [PATCH v3 1/5] contrib: Don't use '#' flag of printf format, zhouyang, 2021/01/17
- [PATCH v3 5/5] contrib: Open brace '{' following struct go on the same line, zhouyang, 2021/01/17
- [PATCH v3 4/5] contrib: space required after that ',', zhouyang, 2021/01/17