--- freem/src/journal.c	2025/01/19 02:04:04	1.1.1.1
+++ freem/src/journal.c	2025/04/10 01:24:38	1.6
@@ -1,23 +1,11 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   journal.c
+ *   $Id: journal.c,v 1.6 2025/04/10 01:24:38 snw Exp $
  *    Implementation of FreeM journaling
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
- *    Copyright (C) 2020 Coherent Logic Development LLC
+ *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
  *
  *
  *   This file is part of FreeM.
@@ -35,6 +23,19 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: journal.c,v $
+ *   Revision 1.6  2025/04/10 01:24:38  snw
+ *   Remove C++ style comments
+ *
+ *   Revision 1.5  2025/04/03 20:48:14  snw
+ *   Improve daemon error diagnostics and bump to 0.63.0-rc3
+ *
+ *   Revision 1.4  2025/03/09 19:14:25  snw
+ *   First phase of REUSE compliance and header reformat
+ *
+ *
+ * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  **/
 
 #include <stdio.h>
@@ -93,7 +94,8 @@ short jnl_init(char *jnlfile, char *host
 
         jnl_desc = open (jnl_file_path, O_CREAT | O_APPEND | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
 
-        if (jnl_desc == -1) jnl_panic ("error creating new journal file");
+        snprintf (tmsg, 255, "error creating new journal file '%s' [errno %d: '%s']", jnl_file_path, errno, strerror (errno));
+        if (jnl_desc == -1) jnl_panic (tmsg);
         
         jnl_lock ();
 
@@ -143,8 +145,6 @@ short jnl_init(char *jnlfile, char *host
 
         }
 
-        //strncpy (jnl_host_id, hdr.)
-        
         jnl_unlock ();
 
         close (jnl_desc);
@@ -230,7 +230,7 @@ short jnl_ent_write(short action, char *
                 break;
 
             default:
-                snprintf (msg, 255, strerror (errno));
+                snprintf (msg, 255, "%s", strerror (errno));
                 break;
 
         }