Re: [PATCH 9/9] refs: use warning() instead of fprintf(stderr, "warning: ")
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Mar 24, 2009, 01:17 UTC
- Message-ID
- <40aa078e0903231817g41fd1bc1s296121d85923f7ea@mail.gmail.com>
- In-Reply-To
- <f6b2ede9af2bd40ce89f0251b32861098af46aad.1237856682.git.vmiklos@frugalware.org>
Show 6 quoted lines
> @@ -996,7 +996,7 @@ int delete_ref(const char *refname, const unsigned char *sha1, int delopt)
>
> err = unlink(git_path("logs/%s", lock->ref_name));
> if (err && errno != ENOENT)
> - fprintf(stderr, "warning: unlink(%s) failed: %s",
> + warning("unlink(%s) failed: %s",Doesn't this add a newline? The original string doesn't have a '\n' at the end of the format-field, but AFAIK warning() terminates with one. I'm not saying it's a problem, I'm just pointing it out.
-- Erik "kusma" Faye-Lund kusmabite@gmail.com (+47) 986 59 656