More use of %m instead of strerror(errno)
[citadel.git] / citadel / modules / network / serv_netmail.c
index 941a2590e26fdef302c19f9354feeb91636c80d4..7c97c5cc4ea3a887610e3fab63c8bbf59a305c15 100644 (file)
@@ -2,7 +2,7 @@
  * This module handles shared rooms, inter-Citadel mail, and outbound
  * mailing list processing.
  *
- * Copyright (c) 2000-2016 by the citadel.org team
+ * Copyright (c) 2000-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.
@@ -551,7 +551,7 @@ void network_process_ignetpush(SpoolControl *sc, struct CtdlMessage *omsg, long
                                        fclose(fp);
                                }
                                else {
-                                       syslog(LOG_ERR, "%s: %s\n", filename, strerror(errno));
+                                       syslog(LOG_ERR, "%s: %m", filename);
                                }
 
                                /* free the serialized version */