From: Petr Machata Date: Wed, 9 Sep 2009 13:33:24 +0000 (+0200) Subject: Fix typos X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3580eeec66ff1c7d73b02ae95d0d72bb93d02c3;p=thirdparty%2Felfutils.git Fix typos --- diff --git a/src/dwarfstrings.c b/src/dwarfstrings.c index fdb3ede41..f25e83acb 100644 --- a/src/dwarfstrings.c +++ b/src/dwarfstrings.c @@ -606,9 +606,10 @@ dwarf_locexpr_opcode_string (unsigned int code) { static const char *const known[] = { - /* Normally we can't affort building huge table of 64K entries, - most of them zero, just because there are a couple defined - values at the far end. In case of opcodes, it's OK. */ + /* Normally we can't afford building table of all entries, most + of them zero, just because there are a couple defined values + at the far end. In case of opcodes, the table is small, so + it's OK. */ #define ONE_KNOWN_DW_OP_DESC(NAME, CODE, DESC) ONE_KNOWN_DW_OP(NAME, CODE) #define ONE_KNOWN_DW_OP(NAME, CODE) [CODE] = #NAME, ALL_KNOWN_DW_OP @@ -623,8 +624,7 @@ dwarf_locexpr_opcode_string (unsigned int code) if (ret == NULL) { static char buf[40]; - snprintf (buf, sizeof buf, gettext ("unknown opcode %" PRIx64), - (uint64_t) code); + snprintf (buf, sizeof buf, gettext ("unknown opcode %x"), code); ret = buf; }