Use log_err() in the io engines
authorJens Axboe <jaxboe@fusionio.com>
Sun, 26 Sep 2010 01:53:40 +0000 (10:53 +0900)
committerJens Axboe <jaxboe@fusionio.com>
Sun, 26 Sep 2010 01:53:40 +0000 (10:53 +0900)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
engines/binject.c
engines/guasi.c
engines/libaio.c
engines/posixaio.c
engines/sg.c
engines/solarisaio.c
engines/splice.c
engines/syslet-rw.c

index 3e95594006ca46604624d3638e67919025a1448d..68b63536e74c64052fb12b3cb1eee1b9a12a553e 100644 (file)
@@ -292,7 +292,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_binject_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_binject_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: ioengine binject not available\n");
+       log_err("fio: ioengine binject not available\n");
        return 1;
 }
 
        return 1;
 }
 
index 15d4801ad2ae1f37d9710d02254acb61d67a7bda..4839019fc49c3ec88facc04eda4e5c812b3a68f9 100644 (file)
@@ -273,7 +273,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_guasi_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_guasi_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: guasi not available\n");
+       log_err("fio: guasi not available\n");
        return 1;
 }
 
        return 1;
 }
 
index 44a7613990593f48903a051370877dc19a6f8503..439cd242dd9e0aab6df2ad65cda1daba35ee0140 100644 (file)
@@ -240,7 +240,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_libaio_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_libaio_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: libaio not available\n");
+       log_err("fio: libaio not available\n");
        return 1;
 }
 
        return 1;
 }
 
index b454aa01e2b50495db4bbcfa1bd6a632dafb6b93..f27ad8ce0a3230d128ad1d555d415c1727d4116d 100644 (file)
@@ -239,7 +239,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_posixaio_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_posixaio_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: posixaio not available\n");
+       log_err("fio: posixaio not available\n");
        return 1;
 }
 
        return 1;
 }
 
index bc82b09c5635b487520f70193f9c127355892d24..ac1d999797a2bd1f5bc7622340b2a7773887a004 100644 (file)
@@ -416,7 +416,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_sgio_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_sgio_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: ioengine sg not available\n");
+       log_err("fio: ioengine sg not available\n");
        return 1;
 }
 
        return 1;
 }
 
index 069cda5347c903d9f458772508b2f6eed0d2fc39..906a154a2eee3093274f3537cdf4bf40bcf1751c 100644 (file)
@@ -234,7 +234,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_solarisaio_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_solarisaio_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: solarisaio not available\n");
+       log_err("fio: solarisaio not available\n");
        return 1;
 }
 
        return 1;
 }
 
index 427b4e5fc85d68071977ed3cdf52b08cc06daef0..be16cbbfdf4a95341de6da7d1572f6612c13841b 100644 (file)
@@ -311,7 +311,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_spliceio_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_spliceio_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: splice not available\n");
+       log_err("fio: splice not available\n");
        return 1;
 }
 
        return 1;
 }
 
index c11e4f21fc39990fc6ece7bfd2dc03bee4c682a2..15e4c2578fe9ee978af4f4a1847ecf571871718e 100644 (file)
@@ -304,7 +304,7 @@ static struct ioengine_ops ioengine = {
  */
 static int fio_syslet_init(struct thread_data fio_unused *td)
 {
  */
 static int fio_syslet_init(struct thread_data fio_unused *td)
 {
-       fprintf(stderr, "fio: syslet not available\n");
+       log_err("fio: syslet not available\n");
        return 1;
 }
 
        return 1;
 }