GRRR no fprintf!

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matt O'Gorman
2006-07-12 03:55:36 +00:00
parent 3d8ef8de96
commit f009c13db7

2
app.c
View File

@@ -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);