More use of %m instead of strerror(errno)
[citadel.git] / citadel / modules / wiki / serv_wiki.c
index cc1f9ed2a0eaadcdf255b48b512b8a87587ed4a3..c415dd97551dbb268c17316aeb621c4a477f7e68 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Server-side module for Wiki rooms.  This handles things like version control. 
  * 
- * Copyright (c) 2009-2015 by the citadel.org team
+ * Copyright (c) 2009-2017 by the citadel.org team
  *
  * This program is open source software.  You can redistribute it and/or
  * modify it under the terms of the GNU General Public License, version 3.
@@ -562,7 +562,7 @@ void wiki_rev(char *pagename, char *rev, char *operation)
                fclose(fp);
        }
        else {
-               syslog(LOG_ALERT, "Cannot open %s: %s\n", temp, strerror(errno));
+               syslog(LOG_ERR, "%s: %m", temp);
        }
        CM_Free(msg);