mirror of
git://git.savannah.gnu.org/guix/guix-cuirass.git
synced 2023-12-14 06:03:04 +01:00
logging: Remove build warnings.
* src/cuirass/logging.scm (log-message): Turn into a procedure.
This commit is contained in:
parent
1d0bfd796e
commit
14e1335732
|
@ -47,11 +47,11 @@
|
|||
(make-parameter (lambda (str)
|
||||
(log-to-port (current-logging-port) str))))
|
||||
|
||||
(define-syntax-rule (log-message fmt args ...)
|
||||
(define (log-message fmt . args)
|
||||
"Log the given message as one line."
|
||||
;; Note: Use '@' to make sure -Wformat detects this use of 'format'.
|
||||
((current-logging-procedure)
|
||||
((@ (ice-9 format) format) #f fmt args ...)))
|
||||
(apply (@ (ice-9 format) format) #f fmt args)))
|
||||
|
||||
(define (call-with-time-logging name thunk)
|
||||
(let* ((start (current-time time-utc))
|
||||
|
|
Loading…
Reference in a new issue