[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: gschlas.c



  User: pbernaud
  Date: 05/02/20 12:10:11

  Modified:    .        gschlas.c
  Log:
  Adapted gschem for new logging system in libgeda.
  
  
  
  
  Revision  Changes    Path
  1.12      +7 -1      eda/geda/devel/utils/gschlas/gschlas.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gschlas.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/gschlas/gschlas.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- gschlas.c	19 Feb 2005 23:27:41 -0000	1.11
  +++ gschlas.c	20 Feb 2005 17:10:11 -0000	1.12
  @@ -56,6 +56,7 @@
     int fopen_status;
     char *cwd;
     struct stat buf;
  +  char *logfile;
     
     TOPLEVEL *pr_current;
   
  @@ -71,7 +72,12 @@
   
     /* create log file right away */
     /* even if logging is enabled */
  -  s_log_init(cwd, "gschlas.log");
  +  logfile = g_build_path (G_DIR_SEPARATOR_S,
  +                          cwd,
  +                          "gschlas.log",
  +                          NULL);
  +  s_log_init (logfile);
  +  g_free (logfile);
   	
     logging_dest=STDOUT_TTY;
     if (!quiet_mode)