summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:33:43 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:33:43 +0000
commit3787d01a51c110a513e9b6fafa6c5c641399f2ce (patch)
treec49427a07fa046ae09d5f9fcef4c8c6b1ffb0f7f /src/tail.c
parent0441b743b0e89b12900f9085600846d2e5d0ceaf (diff)
downloadcoreutils-3787d01a51c110a513e9b6fafa6c5c641399f2ce.tar.xz
Don't embed `this'-style quotes in format strings.
Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tail.c b/src/tail.c
index 522cadf96..104e9f8a7 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -877,8 +877,8 @@ recheck (struct File_spec *f, bool blocking)
unreadable (perms), and later becomes readable again and can
be seen to be the same file (dev/ino). Otherwise, tail prints
the entire contents of the file when it becomes readable. */
- error (0, f->errnum, _("`%s' has become inaccessible"),
- pretty_name (f));
+ error (0, f->errnum, _("%s has become inaccessible"),
+ quote (pretty_name (f)));
}
else
{
@@ -894,9 +894,9 @@ recheck (struct File_spec *f, bool blocking)
{
ok = false;
f->errnum = -1;
- error (0, 0, _("`%s' has been replaced with an untailable file;\
+ error (0, 0, _("%s has been replaced with an untailable file;\
giving up on this name"),
- pretty_name (f));
+ quote (pretty_name (f)));
f->ignore = true;
}
else
@@ -915,7 +915,7 @@ recheck (struct File_spec *f, bool blocking)
{
new_file = true;
assert (f->fd == -1);
- error (0, 0, _("`%s' has become accessible"), pretty_name (f));
+ error (0, 0, _("%s has become accessible"), quote (pretty_name (f)));
}
else if (f->ino != new_stats.st_ino || f->dev != new_stats.st_dev)
{
@@ -923,8 +923,8 @@ recheck (struct File_spec *f, bool blocking)
if (f->fd == -1)
{
error (0, 0,
- _("`%s' has appeared; following end of new file"),
- pretty_name (f));
+ _("%s has appeared; following end of new file"),
+ quote (pretty_name (f)));
}
else
{
@@ -934,8 +934,8 @@ recheck (struct File_spec *f, bool blocking)
/* File has been replaced (e.g., via log rotation) --
tail the new one. */
error (0, 0,
- _("`%s' has been replaced; following end of new file"),
- pretty_name (f));
+ _("%s has been replaced; following end of new file"),
+ quote (pretty_name (f)));
}
}
else
@@ -1446,7 +1446,7 @@ parse_obsolete_option (int argc, char * const *argv, uintmax_t *n_units)
else if ((xstrtoumax (n_string, NULL, 10, n_units, "b")
& ~LONGINT_INVALID_SUFFIX_CHAR)
!= LONGINT_OK)
- error (EXIT_FAILURE, 0, _("number in `%s' is too large"), argv[1]);
+ error (EXIT_FAILURE, 0, _("number in %s is too large"), quote (argv[1]));
/* Set globals. */
from_start = t_from_start;