diff mbox

Fix a warning message in debug/tst-backtrace4.c

Message ID 1445370837-4692-1-git-send-email-tuliom@linux.vnet.ibm.com
State Committed
Delegated to: Mike Frysinger
Headers show

Commit Message

Tulio Magno Quites Machado Filho Oct. 20, 2015, 7:53 p.m. UTC
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  <tuliom@linux.vnet.ibm.com>

	* debug/tst-backtrace4.c (handle_signal): Fix a comment and
	warning message.
---
 debug/tst-backtrace4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mike Frysinger Oct. 21, 2015, 3:23 p.m. UTC | #1
thanks, pushed now
-mike
diff mbox

Patch

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 ();