summaryrefslogtreecommitdiffstats
path: root/src/xtime.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-17 13:13:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-17 13:57:01 -0400
commitc70e7375b1808b23fe4db2018d5e8c9bcb70464d (patch)
treeb84fca909d89c7d5a7f461c7cafeae0058bdca79 /src/xtime.c
parentc3d6f07b8e4d22df533ce7a90660ae1da2df5476 (diff)
downloadbfs-c70e7375b1808b23fe4db2018d5e8c9bcb70464d.tar.xz
diag: New helpers to include xstrerror(errno) automatically
Diffstat (limited to 'src/xtime.c')
-rw-r--r--src/xtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xtime.c b/src/xtime.c
index eb11afa..2808455 100644
--- a/src/xtime.c
+++ b/src/xtime.c
@@ -20,7 +20,7 @@ int xmktime(struct tm *tm, time_t *timep) {
struct tm tmp;
if (!localtime_r(&time, &tmp)) {
- bfs_bug("localtime_r(-1): %s", xstrerror(errno));
+ bfs_ebug("localtime_r(-1)");
return -1;
}
@@ -46,7 +46,7 @@ int xtimegm(struct tm *tm, time_t *timep) {
struct tm tmp;
if (!gmtime_r(&time, &tmp)) {
- bfs_bug("gmtime_r(-1): %s", xstrerror(errno));
+ bfs_ebug("gmtime_r(-1)");
return -1;
}