aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis_indexer/website.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2026-05-11 15:47:09 -0400
committerGitHub <noreply@github.com>2026-05-11 15:47:09 -0400
commit4649a889a916aa377ebd3ca8f3daa9ac703baa34 (patch)
tree993173328bdf96eb469c2412241f202cdbc5cf53 /src/cli/stasis_indexer/website.c
parent58d3ca17dcd3f8b3aeb50b8e4f24afc76d33ff26 (diff)
parentb7a60c5bed989a52a53b8b697203f55367f55a89 (diff)
downloadstasis-4649a889a916aa377ebd3ca8f3daa9ac703baa34.tar.gz
Merge pull request #143 from jhunkeler/use-sys-macros
Replace msg, perror, and fprintf with SYS message macros
Diffstat (limited to 'src/cli/stasis_indexer/website.c')
-rw-r--r--src/cli/stasis_indexer/website.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/stasis_indexer/website.c b/src/cli/stasis_indexer/website.c
index aa6e2a5..07ad6ad 100644
--- a/src/cli/stasis_indexer/website.c
+++ b/src/cli/stasis_indexer/website.c
@@ -42,12 +42,12 @@ int indexer_make_website(struct Delivery **ctx) {
// Convert markdown to html
if (pandoc_exec(fullpath_src, fullpath_dest, have_css ? css_filename : NULL, "STASIS")) {
- msg(STASIS_MSG_L2 | STASIS_MSG_WARN, "Unable to convert %s\n", fullpath_src);
+ SYSWARN("Unable to convert %s", fullpath_src);
}
if (file_replace_text(fullpath_dest, ".md", ".html", 0)) {
// inform-only
- SYSERROR("%s: failed to rewrite *.md urls with *.html extension", fullpath_dest);
+ SYSWARN("%s: failed to rewrite *.md urls with *.html extension", fullpath_dest);
}
// Link the nearest README.html to index.html
@@ -58,7 +58,7 @@ int indexer_make_website(struct Delivery **ctx) {
link_dest[sizeof(link_dest) - 1] = '\0';
snprintf(link_dest, sizeof(link_dest), "%s/%s", root, "index.html");
if (symlink(link_from, link_dest)) {
- SYSERROR("Warning: symlink(%s, %s) failed: %s", link_from, link_dest, strerror(errno));
+ SYSWARN("symlink(%s, %s) failed: %s", link_from, link_dest, strerror(errno));
}
}
}