Skip to contentSkip to conversation

:fix the bug of macro in getdelays.c

PATCH In review liubo 2 participants 2 messages Sep 14, 2009 – Sep 15, 2009

lore
Share & tools
lore

liubo

author
#0 lore raw

PATCH 1/1 :fix the bug of macro in getdelays.c

When running cgroup test, I found a bug of macro in getdelays.c, which refers to the spelling mistake. And this leads to testcase_eight's abnormal delay.

Relative macro:
HAVE_LINUX_CGROUPSTATS_H

Change macro HAVE_LINUX_CGROUPSTAT_H to HAVE_LINUX_CGROUPSTATS_H to fix the bug.

---

testcases/kernel/controllers/cgroup/getdelays.c +1 -1
index 478b325..c9f532d 100644
@@ -397,7 +397,7 @@ int main(int argc, char *argv[])
 	}
 
 	if (containerset) {
-		#ifdef HAVE_LINUX_CGROUPSTAT_H
+		#ifdef HAVE_LINUX_CGROUPSTATS_H
 		cfd = open(containerpath, O_RDONLY);
 		if (cfd < 0) {
 			perror("error opening container file");

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 4 lines · liubo

When running cgroup test, I found a bug of macro in getdelays.c, which refers to the spelling mistake. And this leads to testcase_eight's abnormal delay.

Quoted 8 lines

Relative macro:
HAVE_LINUX_CGROUPSTATS_H

Change macro HAVE_LINUX_CGROUPSTAT_H to HAVE_LINUX_CGROUPSTATS_H to fix the bug.

Thanks.

Regards--
Subrata

Quoted 19 lines

---

testcases/kernel/controllers/cgroup/getdelays.c +1 -2
index 478b325..c9f532d 100644
@@ -397,7 +397,7 @@ int main(int argc, char *argv[])
 	}
 
 	if (containerset) {
-		#ifdef HAVE_LINUX_CGROUPSTAT_H
+		#ifdef HAVE_LINUX_CGROUPSTATS_H
 		cfd = open(containerpath, O_RDONLY);
 		if (cfd < 0) {
 			perror("error opening container file");
 
 
 
 
------------------------------------------------------------------------------
Quoted 8 lines

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list