From cb436c69d9bcb0330518a48559649c9436ed5e7a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Aug 2020 14:55:39 +0200 Subject: executor: add some code style checks Move the test from pkg/csource to executor/ in order to be able to (1) run it on *.cc files, (2) run on unprocessed *.h files, (3) produce line numbers. Add a check for missed space after //. --- executor/common_bsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_bsd.h') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 17306fb96..2aa651dd3 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -61,7 +61,7 @@ static int inject_fault(int nth) en.scope = FAULT_SCOPE_LWP; en.mode = 0; // FAULT_MODE_NTH_ONESHOT - en.nth = nth + 2; //FAULT_NTH_MIN + en.nth = nth + 2; // FAULT_NTH_MIN if (ioctl(fd, FAULT_IOC_ENABLE, &en) != 0) fail("FAULT_IOC_ENABLE failed with nth=%d", nth); -- cgit mrf-deployment