[Pkg-libvirt-commits] [libguestfs] 09/61: diff: do not pad uid/gid in CSV mode
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 31 19:09:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.28.2-1
in repository libguestfs.
commit e6d6a6103fa3c8b97d8f25915542ac9a0438e225
Author: Pino Toscano <ptoscano at redhat.com>
Date: Tue Oct 14 11:10:22 2014 +0200
diff: do not pad uid/gid in CSV mode
(cherry picked from commit 3276845df1847d037fc4a5bed24966e0f9a0d564)
---
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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list