Skip to content

Commit

Permalink
fd_plugin: add missing \n and formating comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-at-bareos authored and BareosBot committed Oct 30, 2023
1 parent a3c99d5 commit f13cfde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions core/src/filed/fd_plugins.cc
Expand Up @@ -732,7 +732,7 @@ int PluginSave(JobControlRecord* jcr, FindFilesPacket* ff_pkt, bool)
break;
case bRC_Skip:
Dmsg0(debuglevel,
"Plugin returned bRC_Skip, continue with next file");
"Plugin returned bRC_Skip, continue with next file\n");
continue;
case bRC_Error:
Jmsg1(jcr, M_FATAL, 0,
Expand All @@ -747,7 +747,9 @@ int PluginSave(JobControlRecord* jcr, FindFilesPacket* ff_pkt, bool)
case bRC_Stop:
case bRC_Term:
Jmsg1(jcr, M_ERROR, 0,
_("Command plugin \"%s\": unhandled returncode from startBackupFile.\n"), cmd);
_("Command plugin \"%s\": unhandled returncode from "
"startBackupFile.\n"),
cmd);

goto fun_end;
}
Expand Down
3 changes: 2 additions & 1 deletion core/src/plugins/filed/python/module/bareosfd.cc
Expand Up @@ -285,7 +285,8 @@ static inline bool PySavePacketToNative(
plugin_priv_ctx->fname = strdup(fileName_AsUTF8);
sp->fname = plugin_priv_ctx->fname;
} else {
PyErr_SetString(PyExc_TypeError, "fname needs to be of type string \"utf-8\"");
PyErr_SetString(PyExc_TypeError,
"fname needs to be of type string \"utf-8\"");
return false;
}
} else {
Expand Down

0 comments on commit f13cfde

Please sign in to comment.