replace printf with fputs where appropriate

This commit is contained in:
Denis Vlasenko
2007-09-30 16:22:36 +00:00
parent 1eecaf26b0
commit 605b20e277
3 changed files with 12 additions and 13 deletions

View File

@@ -2654,7 +2654,7 @@ static void expand_percent_expression(ext2_filsys fs, char ch,
printf("%u", ctx->ino2);
break;
case 'm':
printf("%s", error_message(ctx->errcode));
fputs(error_message(ctx->errcode), stdout);
break;
case 'N':
printf("%"PRIi64, ctx->num);
@@ -2676,7 +2676,7 @@ static void expand_percent_expression(ext2_filsys fs, char ch,
printf("%d", get_backup_sb(NULL, fs, NULL, NULL));
break;
case 's':
printf("%s", ctx->str ? ctx->str : "NULL");
fputs((ctx->str ? ctx->str : "NULL"), stdout);
break;
case 'X':
printf("0x%"PRIi64, ctx->num);