builtin-show-branch: use warning() instead of fprintf(stderr, "warning: ")
authorMiklos Vajna <vmiklos@frugalware.org>
Tue, 24 Mar 2009 01:09:15 +0000 (02:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Mar 2009 04:02:27 +0000 (21:02 -0700)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-show-branch.c

index 306b850c720ecef7030bd7139f7c7d2758125ac4..828e6f86de22f8def68a49b702a27521c248a012 100644 (file)
@@ -365,8 +365,7 @@ static int append_ref(const char *refname, const unsigned char *sha1,
                                return 0;
        }
        if (MAX_REVS <= ref_name_cnt) {
-               fprintf(stderr, "warning: ignoring %s; "
-                       "cannot handle more than %d refs\n",
+               warning("ignoring %s; cannot handle more than %d refs",
                        refname, MAX_REVS);
                return 0;
        }