equal
deleted
inserted
replaced
2473 void jio_print(const char* s) { |
2473 void jio_print(const char* s) { |
2474 // Try to make this function as atomic as possible. |
2474 // Try to make this function as atomic as possible. |
2475 if (Arguments::vfprintf_hook() != NULL) { |
2475 if (Arguments::vfprintf_hook() != NULL) { |
2476 jio_fprintf(defaultStream::output_stream(), "%s", s); |
2476 jio_fprintf(defaultStream::output_stream(), "%s", s); |
2477 } else { |
2477 } else { |
2478 ::write(defaultStream::output_fd(), s, (int)strlen(s)); |
2478 // Make an unused local variable to avoid warning from gcc 4.x compiler. |
|
2479 size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s)); |
2479 } |
2480 } |
2480 } |
2481 } |
2481 |
2482 |
2482 } // Extern C |
2483 } // Extern C |
2483 |
2484 |