From patchwork Tue Oct 20 19:53:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 9280 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 125980 invoked by alias); 20 Oct 2015 19:54:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 125964 invoked by uid 89); 20 Oct 2015 19:54:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e24smtp03.br.ibm.com X-MailFrom: tuliom@linux.vnet.ibm.com X-RcptTo: libc-alpha@sourceware.org From: "Tulio Magno Quites Machado Filho" To: libc-alpha@sourceware.org Subject: [PATCH] Fix a warning message in debug/tst-backtrace4.c Date: Tue, 20 Oct 2015 17:53:57 -0200 Message-Id: <1445370837-4692-1-git-send-email-tuliom@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15102019-0025-0000-0000-0000050DCED3 Modify a warning message so that it doesn't sound as an error, e.g.: "Obtained backtrace with 6 functions (but wanted at least 6)" Update a comment too. 2015-10-20 Tulio Magno Quites Machado Filho * debug/tst-backtrace4.c (handle_signal): Fix a comment and warning message. --- debug/tst-backtrace4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/tst-backtrace4.c b/debug/tst-backtrace4.c index f455abd..33ac328 100644 --- a/debug/tst-backtrace4.c +++ b/debug/tst-backtrace4.c @@ -49,9 +49,9 @@ handle_signal (int signum) /* Get the backtrace addresses. */ n = backtrace (addresses, sizeof (addresses) / sizeof (addresses[0])); - printf ("Obtained backtrace with %d functions (but wanted at least %d)\n", + printf ("Obtained backtrace with %d functions (want at least %d)\n", n, NUM_FUNCTIONS); - /* Check that there are at least six functions. */ + /* Check that there are at least NUM_FUNCTIONS functions. */ if (n < NUM_FUNCTIONS) { FAIL ();