Skip to contentSkip to conversation

cpuhotplug_hotplug.sh: fix the return of cpu number

PATCH Cyril Hrubis 1 participant 1 message Sep 8, 2015 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi!

testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh get_present_cpus() · line 172

Quoted 10 lines
testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh +1 -1
index 6920393..48bd814 100644
@@ -169,7 +169,7 @@ get_present_cpus()
 #
 get_present_cpus_num()
 {
-    return $(get_present_cpus | wc -w)
+	echo $(get_present_cpus | wc -w)

I've changed the tab here back to four spaces since rest of the file uses four spaces for indentation and pushed, thanks.

Signature · 8 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list