From: Markos Chandras <Markos.Chandras@imgtec.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 11/21] process_stress/process: Fix dprt() function definition when DEBUG macro is used
Date: Tue, 3 Jan 2012 11:12:15 +0000 [thread overview]
Message-ID: <4F02E28F.1080603@imgtec.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 50 bytes --]
Hi, please review the attached patch
--
markos
[-- Attachment #2: 0011-process_stress-process-Fix-dprt-function-definition-.patch --]
[-- Type: text/plain, Size: 1123 bytes --]
From ba7dc3499dc3e7389943345a3c042a2b6910b9eb Mon Sep 17 00:00:00 2001
From: Markos Chandras <markos.chandras@imgtec.com>
Date: Mon, 21 Nov 2011 10:24:12 +0000
Subject: [PATCH 11/21] process_stress/process: Fix dprt() function definition when DEBUG macro is used
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
testcases/kernel/sched/process_stress/process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/sched/process_stress/process.c b/testcases/kernel/sched/process_stress/process.c
index b7d68b8..a72c1bc 100644
--- a/testcases/kernel/sched/process_stress/process.c
+++ b/testcases/kernel/sched/process_stress/process.c
@@ -68,7 +68,7 @@
#if defined _LINUX && defined DEBUG
#define prtln() printf("At line number: %d\n", __LINE__); \
fflush(NULL)
-#define dprt(fmt, args...) printf(fmt, args...)
+#define dprt(fmt, args...) printf(fmt, ## args)
#else
#define prtln()
#define dprt(fmt, args...)
@@ -1210,4 +1210,4 @@ dprt("value of nodesum is initiallized to: %d\n", nodesum);
prtln();
return 0;
-}
\ No newline at end of file
+}
--
1.7.1
[-- Attachment #3: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2012-01-03 11:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 11:12 Markos Chandras [this message]
2012-01-03 19:41 ` [LTP] [PATCH 11/21] process_stress/process: Fix dprt() function definition when DEBUG macro is used Garrett Cooper
2012-01-04 14:52 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F02E28F.1080603@imgtec.com \
--to=markos.chandras@imgtec.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.