Преглед изворни кода

src/drivers/cuda/driver_cuda.c: use fprintf when printing error message

Nathalie Furmento пре 13 година
родитељ
комит
70ea706e6a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/drivers/cuda/driver_cuda.c

+ 1 - 1
src/drivers/cuda/driver_cuda.c

@@ -507,7 +507,7 @@ void starpu_cublas_report_error(const char *func, const char *file, int line, cu
 			errormsg = "unknown error";
 			break;
 	}
-	printf("oops in %s (%s:%u)... %d: %s \n", func, file, line, status, errormsg);
+	fprintf(stderr, "oops in %s (%s:%u)... %d: %s \n", func, file, line, status, errormsg);
 	STARPU_ASSERT(0);
 }