Skip to content

Commit 1b22efd

Browse files
committed
Use syswarn() where appropriate.
1 parent b918d57 commit 1b22efd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/pax/tmpfsrd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ icache_insert(uint64_t ino, const char *path, struct stat *sb)
120120

121121
node = calloc(1, sizeof(*node));
122122
if (node == NULL) {
123-
paxwarn(1, "out of memory");
123+
syswarn(1, errno, "calloc");
124124
return (-1);
125125
}
126126

@@ -172,7 +172,7 @@ dcache_insert(const char *path, uint64_t id)
172172

173173
node = calloc(1, sizeof(*node));
174174
if (node == NULL) {
175-
paxwarn(1, "out of memory");
175+
syswarn(1, errno, "calloc");
176176
return (-1);
177177
}
178178

@@ -197,7 +197,7 @@ idmap_translate(ino_t from)
197197
if (node == NULL) {
198198
node = calloc(1, sizeof(*node));
199199
if (node == NULL) {
200-
paxwarn(1, "out of memory");
200+
syswarn(1, errno, "calloc");
201201
return (0);
202202
}
203203

0 commit comments

Comments
 (0)