diff --git a/src/report/report-system/commodity-utilities.scm b/src/report/report-system/commodity-utilities.scm index 8172f3d43b..be4d5028cc 100644 --- a/src/report/report-system/commodity-utilities.scm +++ b/src/report/report-system/commodity-utilities.scm @@ -780,8 +780,8 @@ (define (gnc:make-exchange-function exchange-alist) (let ((exchangelist exchange-alist)) (lambda (foreign domestic) - (gnc:debug "foreign: " foreign) - (gnc:debug "domestic: " domestic) + (gnc:debug "foreign: " (gnc:monetary->string foreign)) + (gnc:debug "domestic: " (gnc-commodity-get-printname domestic)) (if foreign (or (gnc:exchange-by-euro foreign domestic #f) (gnc:exchange-if-same foreign domestic) @@ -898,8 +898,8 @@ (define (gnc:exchange-by-pricealist-nearest pricealist foreign domestic date) (begin - (gnc:debug "foreign " foreign) - (gnc:debug "domestic " domestic) + (gnc:debug "foreign " (gnc:monetary->string foreign)) + (gnc:debug "domestic " (gnc-commodity-get-printname domestic)) (gnc:debug "pricealist " pricealist) (if (and (record? foreign) (gnc:gnc-monetary? foreign) diff --git a/src/report/standard-reports/advanced-portfolio.scm b/src/report/standard-reports/advanced-portfolio.scm index 9b9ebf6e94..f02c3b0f01 100644 --- a/src/report/standard-reports/advanced-portfolio.scm +++ b/src/report/standard-reports/advanced-portfolio.scm @@ -643,8 +643,8 @@ ;; what this means is gain = moneyout - moneyin + basis-of-current-shares, and ;; adjust for brokers and dividends. (gaincoll 'add currency (sum-basis basis-list)) - (gnc:debug (list "basis we're using to build rows is " (sum-basis basis-list))) - (gnc:debug (list "but the actual basis list is " basis-list)) + (gnc:debug "basis we're using to build rows is " (sum-basis basis-list)) + (gnc:debug "but the actual basis list is " basis-list) (gaincoll 'merge moneyoutcoll #f) (gaincoll 'minusmerge moneyincoll #f) diff --git a/src/scm/price-quotes.scm b/src/scm/price-quotes.scm index 6c4559d0e2..39c6a2773b 100644 --- a/src/scm/price-quotes.scm +++ b/src/scm/price-quotes.scm @@ -259,7 +259,7 @@ #t (lambda () (set! results (read from-child)) - (gnc:debug (list 'results results)) + (gnc:debug "results: " results) results) (lambda (key . args) key))))) @@ -345,7 +345,7 @@ (catch #t (lambda () - (gnc:debug (list 'handling-request request)) + (gnc:debug "handling-request: " request) ;; we need to display the first element (the method, so it ;; won't be quoted) and then write the rest (display #\( to-child) @@ -356,7 +356,7 @@ (newline to-child) (force-output to-child) (set! results (read from-child)) - (gnc:debug (list 'results results)) + (gnc:debug "results: " results) results) (lambda (key . args) key))) @@ -482,7 +482,7 @@ (and (pair? alist-item) (not (eq? 'failed-conversion (cdr alist-item))))) (cdr call-result))) - ;; OK, data is good (as far as we can tell. + ;; OK, data is good (as far as we can tell). (set! result-list (cons (list (car call-data) (caddr call-data)