Skip to content

Commit

Permalink
example-plugin-fd.cc: use format macro constants from inttypes.h
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Nov 5, 2019
1 parent aea3e6c commit 4d50303
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/plugins/filed/example-plugin-fd.cc
Expand Up @@ -13,6 +13,7 @@
#define BUILD_PLUGIN
#define BUILDING_DLL /* required for Windows plugin */

#include <cinttypes>
#include "include/bareos.h"
#include "filed/fd_plugins.h"

Expand Down Expand Up @@ -173,10 +174,11 @@ static bRC handlePluginEvent(bpContext* ctx, bEvent* event, void* value)
printf("plugin: BackupEnd\n");
break;
case bEventLevel:
printf("plugin: JobLevel=%c %ld\n", (int)(int64_t)value, (int64_t)value);
printf("plugin: JobLevel=%c %" PRId64 "\n", (int)(int64_t)value,
(int64_t)value);
break;
case bEventSince:
printf("plugin: since=%ld\n", (int64_t)value);
printf("plugin: since=%" PRId64 "\n", (int64_t)value);
break;
case bEventStartRestoreJob:
printf("plugin: StartRestoreJob\n");
Expand Down

0 comments on commit 4d50303

Please sign in to comment.