~jonathank89/burg/burg-percise

« back to all changes in this revision

Viewing changes to commands/hexdump.c

merge mainline into mips

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* hexdump.c - command to dump the contents of a file or memory */
2
2
/*
3
3
 *  GRUB  --  GRand Unified Bootloader
4
 
 *  Copyright (C) 2007,2008  Free Software Foundation, Inc.
 
4
 *  Copyright (C) 2007,2008,2009  Free Software Foundation, Inc.
5
5
 *
6
6
 *  GRUB is free software: you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
24
24
#include <grub/gzio.h>
25
25
#include <grub/lib/hexdump.h>
26
26
#include <grub/extcmd.h>
 
27
#include <grub/i18n.h>
27
28
 
28
29
static const struct grub_arg_option options[] = {
29
 
  {"skip", 's', 0, "Skip offset bytes from the beginning of file.", 0,
 
30
  {"skip", 's', 0, N_("Skip offset bytes from the beginning of file."), 0,
30
31
   ARG_TYPE_INT},
31
 
  {"length", 'n', 0, "Read only LENGTH bytes.", 0, ARG_TYPE_INT},
 
32
  {"length", 'n', 0, N_("Read only LENGTH bytes."), 0, ARG_TYPE_INT},
32
33
  {0, 0, 0, 0, 0, 0}
33
34
};
34
35
 
121
122
{
122
123
  cmd = grub_register_extcmd ("hexdump", grub_cmd_hexdump,
123
124
                              GRUB_COMMAND_FLAG_BOTH,
124
 
                              "[OPTIONS] FILE_OR_DEVICE",
125
 
                              "Dump the contents of a file or memory.",
 
125
                              N_("[OPTIONS] FILE_OR_DEVICE"),
 
126
                              N_("Dump the contents of a file or memory."),
126
127
                              options);
127
128
}
128
129