if (base64) {
/* warn users that the --base64 option passed from command line is wrong */
- vshError(ctl, _("Passing secret value as command-line argument is insecure!"));
+ vshWarn(ctl, _("Passing secret value as command-line argument is insecure!"));
secret_val = g_strdup(base64);
secret_len = strlen(secret_val);
} else if (filename) {
}
+void
+vshWarn(vshControl *ctl, const char *format, ...)
+{
+ va_list ap;
+
+ va_start(ap, format);
+ vshPrintStderr(ctl, VSH_ERR_WARNING, format, ap);
+ va_end(ap);
+}
+
+
void
vshEventLoop(void *opaque)
{
const char *msg G_GNUC_UNUSED,
bool relax_avail G_GNUC_UNUSED)
{
- vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not supported on WIN32 platform"));
+ vshWarn(ctl, "%s", _("This function is not supported on WIN32 platform"));
return 0;
}
#endif /* WIN32 */
void vshError(vshControl *ctl, const char *format, ...)
G_GNUC_PRINTF(2, 3);
+void vshWarn(vshControl *ctl, const char *format, ...)
+ G_GNUC_PRINTF(2, 3);
void vshOpenLogFile(vshControl *ctl);
void vshOutputLogFile(vshControl *ctl, int log_level, const char *msg);
void vshCloseLogFile(vshControl *ctl);