Fix build: fprintf without modifier

Change-Id: I66ae21a25a25fa3c70837bc54a7d406182d4cf37
This commit is contained in:
Tao Bao 2015-06-03 09:49:02 -07:00
parent a69e608a52
commit 1eb9003b77

View file

@ -65,8 +65,7 @@ void uiPrint(State* state, char* buffer) {
// The recovery will only print the contents to screen for pipe command
// ui_print. We need to dump the contents to stderr (which has been
// redirected to the log file) directly.
fprintf(stderr, buffer);
fprintf(stderr, "\n");
fprintf(stderr, "%s", buffer);
}
__attribute__((__format__(printf, 2, 3))) __nonnull((2))