diff --git a/collect_data.sh b/collect_data.sh
index 679b9bcbc74a4d67957fdaff294f3910c0ff4598..e8b74c9010bb169e54ea957f31b2ffdd87f23147 100755
--- a/collect_data.sh
+++ b/collect_data.sh
@@ -54,7 +54,7 @@ correlation() {
         perforate "${target}.c" "${output}.c" "$x" "$y"
         echo compile "${output}.c" "${output}"
         compile "${output}.c" "${output}" "-O3"
-        printf "correlation,%d,%d," "${x}" "${y}" >> ${LOG}
+        printf "correlation,%s,%s," "${x}" "${y}" >> ${LOG}
         ./${output} >> ${LOG}
     done < $tmpfile
 
@@ -78,7 +78,7 @@ jacobi() {
         perforate "${target}.c" "${output}.c" "$x" "$y"
         echo compile "${output}.c" "${output}"
         compile "${output}.c" "${output}" "codes/jacobi-2d/data.o"
-        printf "jacobi-2d,%d,%d," "${x}" "${y}" >> ${LOG}
+        printf "jacobi-2d,%s,%s," "${x}" "${y}" >> ${LOG}
         ./${output} >> ${LOG}
     done < $tmpfile
 
@@ -102,7 +102,7 @@ deriche() {
         perforate "${target}.c" "${output}.c" "$x" "$y"
         echo compile "${output}.c" "${output}"
         compile "${output}.c" "${output}" "codes/deriche/data.o"
-        printf "deriche,%d,%d," "${x}" "${y}" >> ${LOG}
+        printf "deriche,%s,%s," "${x}" "${y}" >> ${LOG}
         ./${output} >> ${LOG}
     done < $tmpfile
 
@@ -126,7 +126,7 @@ floyd_warshall() {
         perforate "${target}.c" "${output}.c" "$x" "$y"
         echo compile "${output}.c" "${output}"
         compile "${output}.c" "${output}" "codes/floyd-warshall/data.o"
-        printf "floyd_warshall,%d,%d," "${x}" "${y}" >> ${LOG}
+        printf "floyd_warshall,%s,%s," "${x}" "${y}" >> ${LOG}
         ./${output} >> ${LOG}
     done < $tmpfile