aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-12 03:55:36 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-12 03:55:36 +0000
commit5105eb333a32537a4296442b93edd2f3bd676ec0 (patch)
tree9c3a07cb6d75460f6f7aa207d43878561c559aa4
parenteb33aa1f46c015255e8bc4a0fbe6668704ed7afb (diff)
GRRR no fprintf!
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37402 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.c b/app.c
index 4971f4d77..64fa49fa7 100644
--- a/app.c
+++ b/app.c
@@ -1158,7 +1158,7 @@ enum AST_LOCK_RESULT ast_lock_path(const char *path)
snprintf(fs, strlen(path) + 19, "%s/.lock-%08x", path, rand());
fd = open(fs, O_WRONLY | O_CREAT | O_EXCL, 0600);
if (fd < 0) {
- fprintf(stderr, "Unable to create lock file '%s': %s\n", path, strerror(errno));
+ ast_log(LOG_ERROR, "Unable to create lock file '%s': %s\n", path, strerror(errno));
return AST_LOCK_PATH_NOT_FOUND;
}
close(fd);