From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbdBGJSX (ORCPT ); Tue, 7 Feb 2017 04:18:23 -0500 Received: from fallback1.mail.ru ([94.100.181.184]:49868 "EHLO fallback1.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbdBGJST (ORCPT ); Tue, 7 Feb 2017 04:18:19 -0500 Subject: [PATCH 2/2] tests: improve output of sigaltstack testcase To: Andrew Morton References: <20170205101213.8163-1-stsp@list.ru> <20170205101213.8163-2-stsp@list.ru> <9954a03a-5afd-f441-a784-5eb3304d6c3f@list.ru> <20170206160443.55c0f1daac793f1464053cd6@linux-foundation.org> Cc: Andy Lutomirski , Helge Deller , David Miller , Linux kernel , Oleg Nesterov , David Miller From: Stas Sergeev Message-ID: Date: Tue, 7 Feb 2017 11:55:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170206160443.55c0f1daac793f1464053cd6@linux-foundation.org> Content-Type: multipart/mixed; boundary="------------E4CB0CA854134CDED4446EE4" Authentication-Results: smtp54.i.mail.ru; auth=pass smtp.auth=stsp@list.ru smtp.mailfrom=stsp@list.ru X-E1FCDC63: 7AEC6E04E31B87BDBF13B227133D916AE14C30E3D2487BCD X-E1FCDC64: D3AED0C415C4615B0DB076F9FBB17194C2AED82B09A1FB7AA0E6B21B7D656E39 X-Mailru-Sender: CD12F6D16A91A65928D288116902403B93F97FABD23576DCEF2B473F667158B3E204044DB95E740A08D917D6130B1AFB X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------E4CB0CA854134CDED4446EE4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 07.02.2017 03:04, Andrew Morton пишет: > On Mon, 6 Feb 2017 12:30:38 +0300 Stas Sergeev wrote: > >> So it seems my patches haven't made it into LKML >> and I don't know if they made it into stable@ because >> the archive link: >> http://dir.gmane.org/gmane.linux.kernel.stable >> doesn't work. >> There is definitely something wrong here. >> >> So did they pass into a stable ML? >> If not, Andy can I use your Acked-by when/if resending? >> Are there any known problems with MLs and the archives now? > I have a copy of [1/2] because I was on cc. I cannot locate a copy of > [2/2]. Please cc Oleg on signal-related changes. Thanks for taking these! 2/2 had the CCs to CC: Shuah Khan CC: Ingo Molnar CC: Andy Lutomirski CC:linux-kselftest@vger.kernel.org CC:linux-kernel@vger.kernel.org CC:trivial@kernel.org as it only changed the self-test. Obviously I am getting spam-blocked somewhere. I generate the CC list with get_maintainers.pl. Is this the right thing to do? Oleg was CCed on [1/2] as get_maintainers.pl mentioned him. I am attaching the [2/2] to this e-mail. If this doesn't work, I can try to re-send it with more CCs, but it will likely be blocked again. --------------E4CB0CA854134CDED4446EE4 Content-Type: text/x-patch; name="0002-tests-improve-output-of-sigaltstack-testcase.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0002-tests-improve-output-of-sigaltstack-testcase.patch" >>From d4dc2ac235b5a18f5bdf916152509f8b0e11276e Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Sat, 4 Feb 2017 22:11:49 +0300 Subject: [PATCH 2/2] tests: improve output of sigaltstack testcase Currently it uses %i for bitmasks, which makes it difficult to properly decode the values. Use %x instead. Signed-off-by: Stas Sergeev CC: Shuah Khan CC: Ingo Molnar CC: Andy Lutomirski CC: linux-kselftest@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: trivial@kernel.org --- tools/testing/selftests/sigaltstack/sas.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/sigaltstack/sas.c b/tools/testing/selftests/sigaltstack/sas.c index 1bb0125..ccd0734 100644 --- a/tools/testing/selftests/sigaltstack/sas.c +++ b/tools/testing/selftests/sigaltstack/sas.c @@ -57,7 +57,7 @@ void my_usr1(int sig, siginfo_t *si, void *u) exit(EXIT_FAILURE); } if (stk.ss_flags != SS_DISABLE) - printf("[FAIL]\tss_flags=%i, should be SS_DISABLE\n", + printf("[FAIL]\tss_flags=%x, should be SS_DISABLE\n", stk.ss_flags); else printf("[OK]\tsigaltstack is disabled in sighandler\n"); @@ -122,7 +122,8 @@ int main(void) if (stk.ss_flags == SS_DISABLE) { printf("[OK]\tInitial sigaltstack state was SS_DISABLE\n"); } else { - printf("[FAIL]\tInitial sigaltstack state was %i; should have been SS_DISABLE\n", stk.ss_flags); + printf("[FAIL]\tInitial sigaltstack state was %x; " + "should have been SS_DISABLE\n", stk.ss_flags); return EXIT_FAILURE; } @@ -165,7 +166,7 @@ int main(void) exit(EXIT_FAILURE); } if (stk.ss_flags != SS_AUTODISARM) { - printf("[FAIL]\tss_flags=%i, should be SS_AUTODISARM\n", + printf("[FAIL]\tss_flags=%x, should be SS_AUTODISARM\n", stk.ss_flags); exit(EXIT_FAILURE); } -- 2.9.3 --------------E4CB0CA854134CDED4446EE4--