search for: next_field

Displaying 4 results from an estimated 4 matches for "next_field".

Did you mean: text_field
2014 Oct 14
1
[PATCH] diff: do not pad uid/gid in CSV mode
--- diff/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff/diff.c b/diff/diff.c index f4b25e9..ad371b0 100644 --- a/diff/diff.c +++ b/diff/diff.c @@ -1108,7 +1108,7 @@ output_int64_uid (int64_t i) { next_field (); /* csv doesn't need escaping */ - if (printf ("%4" PRIi64, i) < 0) { + if (printf (csv ? "%" PRIi64 : "%4" PRIi64, i) < 0) { perror ("printf"); exit (EXIT_FAILURE); } -- 1.9.3
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...f (mbr_id_str, sizeof mbr_id_str, "%02x", (unsigned) mbr_id); strings[len++] = mbr_id_str; } else strings[len++] = NULL; diff --git a/cat/ls.c b/cat/ls.c index 3bced54..987dcef 100644 --- a/cat/ls.c +++ b/cat/ls.c @@ -702,7 +702,7 @@ output_int64_perms (int64_t i) { next_field (); /* csv doesn't need escaping */ - if (printf ("%04" PRIo64, i) < 0) { + if (printf ("%04" PRIo64, (uint64_t) i) < 0) { perror ("printf"); exit (EXIT_FAILURE); } @@ -774,7 +774,8 @@ output_int64_dev (int64_t i) next_field (); /* c...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...f (mbr_id_str, sizeof mbr_id_str, "%02x", (unsigned) mbr_id); strings[len++] = mbr_id_str; } else strings[len++] = NULL; diff --git a/cat/ls.c b/cat/ls.c index 3bced54..987dcef 100644 --- a/cat/ls.c +++ b/cat/ls.c @@ -702,7 +702,7 @@ output_int64_perms (int64_t i) { next_field (); /* csv doesn't need escaping */ - if (printf ("%04" PRIo64, i) < 0) { + if (printf ("%04" PRIo64, (uint64_t) i) < 0) { perror ("printf"); exit (EXIT_FAILURE); } @@ -774,7 +774,8 @@ output_int64_dev (int64_t i) next_field (); /* c...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...if (!drv) { - perror ("calloc"); - exit (EXIT_FAILURE); - } + if (!drv) + error (EXIT_FAILURE, errno, "calloc"); drv->type = drv_d; drv->d.guest = argv[optind]; drv->next = drvs; @@ -564,10 +559,8 @@ next_field (void) field++; if (field == 1) return; - if (putchar (c) == EOF) { - perror ("putchar"); - exit (EXIT_FAILURE); - } + if (putchar (c) == EOF) + error (EXIT_FAILURE, errno, "putchar"); } static void @@ -579,10 +572,8 @@ output_start_line (void) static vo...