static void usage (char *prog)
{
- fprintf (stderr, _("usage: %s [-d debug_flags] [-f] [-F] [-p] device [new-size]\n\n"), prog);
+ fprintf (stderr, _("Usage: %s [-d debug_flags] [-f] [-F] [-p] "
+ "device [new_size]\n\n"), prog);
exit (1);
}
initialize_ext2_error_table();
- fprintf (stderr, _("resize2fs %s (%s)\n"),
+ fprintf (stderr, "resize2fs %s (%s)\n",
E2FSPROGS_VERSION, E2FSPROGS_DATE);
if (argc && *argv)
program_name = *argv;
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_BMOVE)
- printf(_("Number of free blocks: %d/%d, Needed: %d\n"),
+ printf("Number of free blocks: %d/%d, Needed: %d\n",
rfs->old_fs->super->s_free_blocks_count,
rfs->new_fs->super->s_free_blocks_count,
rfs->needed_blocks);
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_BMOVE)
- printf(_("Going into desperation "
- "mode for block allocations\n"));
+ printf("Going into desperation mode "
+ "for block allocations\n");
#endif
rfs->alloc_state = DESPERATION;
rfs->new_blk = fs->super->s_first_data_block;
break;
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_BMOVE)
- printf(_("Moving %d blocks %u->%u\n"), size,
- old_blk, new_blk);
+ printf("Moving %d blocks %u->%u\n",
+ size, old_blk, new_blk);
#endif
do {
c = size;
pb->changed = 1;
#ifdef RESIZE2FS_DEBUG
if (pb->rfs->flags & RESIZE_DEBUG_BMOVE)
- printf(_("ino=%u, blockcnt=%lld, %u->%u\n"),
+ printf("ino=%u, blockcnt=%lld, %u->%u\n",
pb->ino, blockcnt, block, new_block);
#endif
block = new_block;
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_INODEMAP)
- printf(_("Inode moved %u->%u\n"), ino, new_inode);
+ printf("Inode moved %u->%u\n", ino, new_inode);
#endif
if (!rfs->imap) {
retval = ext2fs_create_extent_table(&rfs->imap, 0);
return 0;
#ifdef RESIZE2FS_DEBUG
if (is->rfs->flags & RESIZE_DEBUG_INODEMAP)
- printf(_("Inode translate (dir=%u, name=%.*s, %u->%u)\n"),
+ printf("Inode translate (dir=%u, name=%.*s, %u->%u)\n",
dir, dirent->name_len&0xFF, dirent->name,
dirent->inode, new_inode);
#endif
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
- printf(_("Itable move group %d block "
- "%u->%u (diff %d)\n"),
+ printf("Itable move group %d block %u->%u (diff %d)\n",
i, old_blk, new_blk, diff);
#endif
n = n >> EXT2_BLOCK_SIZE_BITS(fs->super);
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
- printf(_("%d blocks of zeros...\n"), n);
+ printf("%d blocks of zeros...\n", n);
#endif
num = fs->inode_blocks_per_group;
if (n > diff)
ext2fs_flush(fs);
#ifdef RESIZE2FS_DEBUG
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
- printf(_("Inode table move finished.\n"));
+ printf("Inode table move finished.\n");
#endif
return 0;
* should be fsck'ed and we assume it is consistent.
*/
fprintf(stderr,
- _("Should never happen resize inode corrupt!\n"));
+ _("Should never happen: resize inode corrupt!\n"));
exit(1);
}