builtin-init-db: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Miklos Vajna committed
Mar 24, 2009 at 02:09 UTC
2fd8c0a5dbc614a6a7853558e4af8298acefc96a
1 file changed
+3
-4
builtin-init-db.c
+3
-4
@@ -130,8 +130,7 @@ static void copy_templates(const char *template_dir)
130
}
131
dir = opendir(template_path);
132
if (!dir) {
133
- fprintf(stderr, "warning: templates not found %s\n",
134
- template_dir);
133
+ warning("templates not found %s", template_dir);
134
return;
135
}
136
@@ -144,8 +143,8 @@ static void copy_templates(const char *template_dir)
143
144
if (repository_format_version &&
145
repository_format_version != GIT_REPO_VERSION) {
147
- fprintf(stderr, "warning: not copying templates of "
148
- "a wrong format version %d from '%s'\n",
146
+ warning("not copying templates of "
147
+ "a wrong format version %d from '%s'",
148
repository_format_version,
149
template_dir);
150
closedir(dir);