Commit 466b5cb0 authored by Max Kellermann's avatar Max Kellermann

neighbor/smbclient: FmtError() instead of FormatErrno()

parent 3f2f3251
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <libsmbclient.h> #include <libsmbclient.h>
#include <cerrno>
#include <cstring>
#include <utility> #include <utility>
class SmbclientNeighborExplorer final : public NeighborExplorer { class SmbclientNeighborExplorer final : public NeighborExplorer {
...@@ -165,8 +167,8 @@ ReadServers(SmbclientContext &ctx, const char *uri, ...@@ -165,8 +167,8 @@ ReadServers(SmbclientContext &ctx, const char *uri,
ReadServers(ctx, handle, list); ReadServers(ctx, handle, list);
ctx.CloseDirectory(handle); ctx.CloseDirectory(handle);
} else } else
FormatErrno(smbclient_domain, "smbc_opendir('%s') failed", FmtError(smbclient_domain, "smbc_opendir('{}') failed: {}",
uri); uri, strerror(errno));
} }
[[gnu::pure]] [[gnu::pure]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment