Index: dashboard.scm ================================================================== --- dashboard.scm +++ dashboard.scm @@ -15,10 +15,14 @@ ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see . ;; ;;====================================================================== + +(declare (uses debugprint)) + +(import debugprint) (use format) (require-library iup) (import (prefix iup iup:)) Index: dbfile.scm ================================================================== --- dbfile.scm +++ dbfile.scm @@ -17,11 +17,11 @@ ;; along with Megatest. If not, see . ;;====================================================================== (declare (unit dbfile)) -;; (declare (uses debugprint)) +(declare (uses debugprint)) (declare (uses commonmod)) (module dbfile * @@ -40,11 +40,11 @@ commonmod ;; debugprint ) -(define keep-age-param (make-parameter 10)) ;; qif file age, if over move to attic +(import debugprint) (define num-run-dbs (make-parameter 10)) ;; number of db's in .megatest ;;====================================================================== ;; R E C O R D S ;;====================================================================== @@ -335,14 +335,15 @@ (lambda () (apply print params))) (exit 1)) (define (dbfile:print-err . params) - (with-output-to-port - (current-error-port) - (lambda () - (apply print params)))) + (apply debug:print 0 *default-log-port* params)) +;; (with-output-to-port +;; (current-error-port) +;; (lambda () +;; (apply print params)))) (define (dbfile:cautious-open-database fname init-proc sync-mode journal-mode #!optional (tries-left 500)) (let* ((busy-file (conc fname "-journal")) (delay-time (* (- 51 tries-left) 1.1)) (write-access (file-write-access? fname)) Index: debugprint.scm ================================================================== --- debugprint.scm +++ debugprint.scm @@ -1,5 +1,26 @@ +;;====================================================================== +;; Copyright 2017, Matthew Welland. +;; +;; This file is part of Megatest. +;; +;; Megatest is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; Megatest is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with Megatest. If not, see . + +;;====================================================================== + +(use srfi-69) (declare (unit debugprint)) (declare (uses mtargs)) (module debugprint @@ -23,10 +44,11 @@ ;; chicken.process-context ;; chicken.process-context.posix (prefix mtargs args:) srfi-1 + srfi-69 ;; system-information ) ;;====================================================================== ;; debug stuff Index: megatest.scm ================================================================== --- megatest.scm +++ megatest.scm @@ -45,14 +45,14 @@ (declare (uses db)) (declare (uses dbmod)) (declare (uses dbmod.import)) (declare (uses commonmod)) (declare (uses commonmod.import)) +(declare (uses debugprint)) +(declare (uses debugprint.import)) (declare (uses dbfile)) (declare (uses dbfile.import)) -;; (declare (uses debugprint)) -;; (declare (uses debugprint.import)) ;; (declare (uses mtargs)) ;; (declare (uses mtargs.import)) ;; (declare (uses ftail)) ;; (import ftail) Index: mtargs.scm ================================================================== --- mtargs.scm +++ mtargs.scm @@ -17,7 +17,7 @@ ;; along with Megatest. If not, see . ;;====================================================================== (declare (unit mtargs)) - +(use srfi-69) (include "mtargs/mtargs.scm")