Skip to content

Commit 4da7cfb

Browse files
committed
Added filename
1 parent 33ff096 commit 4da7cfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/network/TaskWorker.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,22 @@ int swTaskWorker_large_pack(swEventData *task, void *data, int data_len)
4545
{
4646
swPackage_task pkg;
4747
memcpy(pkg.tmpfile, SW_TASK_TMP_FILE, sizeof(SW_TASK_TMP_FILE));
48+
4849
#ifdef HAVE_MKOSTEMP
4950
int tpm_fd = mkostemp(pkg.tmpfile, O_WRONLY);
5051
#else
5152
int tpm_fd = mkstemp(pkg.tmpfile);
5253
#endif
54+
5355
if (tpm_fd < 0)
5456
{
55-
swWarn("mkdtemp() failed. Error: %s[%d]", strerror(errno), errno);
57+
swWarn("mkdtemp(%s) failed. Error: %s[%d]", pkg.tmpfile, strerror(errno), errno);
5658
return SW_ERR;
5759
}
5860

5961
if (swoole_sync_writefile(tpm_fd, data, data_len) <=0)
6062
{
61-
swWarn("write to tmp file failed.");
63+
swWarn("write to tmpfile failed.");
6264
return SW_ERR;
6365
}
6466
/**

0 commit comments

Comments
 (0)