summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:28:12 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:28:12 +0000
commite50dc3f9fbb3b86bccefedc6712f0d711d6bf2ad (patch)
treee0f0222d801c0eb9704d547a87d7d8734086fdd6 /src/od.c
parenta5c9e15482a54c0bb7d3bc0404c23c28ef8670ee (diff)
downloadcoreutils-e50dc3f9fbb3b86bccefedc6712f0d711d6bf2ad.tar.xz
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/od.c b/src/od.c
index b8f8c8c84..ec398ea63 100644
--- a/src/od.c
+++ b/src/od.c
@@ -668,7 +668,7 @@ decode_one_format (const char *s_orig, const char *s, const char **next,
/* The integer at P in S would overflow an unsigned long int.
A digit string that long is sufficiently odd looking
that the following diagnostic is sufficient. */
- error (0, 0, _("invalid type string `%s'"), s_orig);
+ error (0, 0, _("invalid type string %s"), quote (s_orig));
return false;
}
if (p == s)
@@ -678,8 +678,8 @@ decode_one_format (const char *s_orig, const char *s, const char **next,
if (MAX_INTEGRAL_TYPE_SIZE < size
|| integral_type_size[size] == NO_SIZE)
{
- error (0, 0, _("invalid type string `%s';\n\
-this system doesn't provide a %lu-byte integral type"), s_orig, size);
+ error (0, 0, _("invalid type string %s;\n\
+this system doesn't provide a %lu-byte integral type"), quote (s_orig), size);
return false;
}
s = p;
@@ -787,7 +787,7 @@ this system doesn't provide a %lu-byte integral type"), s_orig, size);
/* The integer at P in S would overflow an unsigned long int.
A digit string that long is sufficiently odd looking
that the following diagnostic is sufficient. */
- error (0, 0, _("invalid type string `%s'"), s_orig);
+ error (0, 0, _("invalid type string %s"), quote (s_orig));
return false;
}
if (p == s)
@@ -797,8 +797,9 @@ this system doesn't provide a %lu-byte integral type"), s_orig, size);
if (size > MAX_FP_TYPE_SIZE
|| fp_type_size[size] == NO_SIZE)
{
- error (0, 0, _("invalid type string `%s';\n\
-this system doesn't provide a %lu-byte floating point type"), s_orig, size);
+ error (0, 0, _("invalid type string %s;\n\
+this system doesn't provide a %lu-byte floating point type"),
+ quote (s_orig), size);
return false;
}
s = p;
@@ -855,8 +856,8 @@ this system doesn't provide a %lu-byte floating point type"), s_orig, size);
break;
default:
- error (0, 0, _("invalid character `%c' in type string `%s'"),
- *s, s_orig);
+ error (0, 0, _("invalid character `%c' in type string %s"),
+ *s, quote (s_orig));
return false;
}