If the smb.conf (or $HOME/.smb/smb.conf) has "log level = X" and X is higher value, libsmbclient log some messages to standard output when the first smbc_new_context() is called. I want to change the all log destination to standard error to avoid corrupting standard output, but there is no way to do that.