diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-11 15:24:53 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-11 15:34:45 -0400 |
| commit | b7a60c5bed989a52a53b8b697203f55367f55a89 (patch) | |
| tree | 993173328bdf96eb469c2412241f202cdbc5cf53 /src/lib/delivery/delivery_export.c | |
| parent | 58d3ca17dcd3f8b3aeb50b8e4f24afc76d33ff26 (diff) | |
| download | stasis-b7a60c5bed989a52a53b8b697203f55367f55a89.tar.gz | |
Replace msg, perror, and fprintf with SYS message macrosuse-sys-macros
Diffstat (limited to 'src/lib/delivery/delivery_export.c')
| -rw-r--r-- | src/lib/delivery/delivery_export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/delivery/delivery_export.c b/src/lib/delivery/delivery_export.c index a973875..0321050 100644 --- a/src/lib/delivery/delivery_export.c +++ b/src/lib/delivery/delivery_export.c @@ -14,7 +14,7 @@ static void delivery_export_configuration(const struct Delivery *ctx) { SYSDEBUG("%s: opening", filename); FILE *spec = fopen(filename, "w+"); if (!spec) { - msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", filename); + SYSERROR("open failed %s", filename); exit(1); } SYSDEBUG("%s: writing", filename); @@ -32,7 +32,7 @@ static void delivery_export_configuration(const struct Delivery *ctx) { SYSDEBUG("%s: opening", filename); spec = fopen(filename, "w+"); if (!spec) { - msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", filename); + SYSERROR("open failed %s", filename); exit(1); } SYSDEBUG("%s: writing", filename); @@ -55,7 +55,7 @@ void delivery_export(const struct Delivery *ctx, char *envs[]) { char *name = envs[i]; msg(STASIS_MSG_L2, "Exporting %s\n", name); if (conda_env_export(name, ctx->storage.delivery_dir, name)) { - msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", name); + SYSERROR("export failed %s", name); exit(1); } } |
