git-name-rev: don't use printf without format
commit7c5b1675a88a52be1822129e4aa915c5531f6700
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 3 Aug 2008 13:44:33 +0000 (3 15:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2008 19:48:41 +0000 (3 12:48 -0700)
tree6af503f9bf6be6fc7b53252c4b57248f9b74320a
parentb003c00b7b5e352569061fec0b1e1bd0d0fa8b6a
git-name-rev: don't use printf without format

printf() without an explicit format string is not a good coding practise,
unless the printed string is guaranteed to not contain percent signs.  While
fixing this, we might as well combine the calls to fwrite() and printf().

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-name-rev.c