changeset 20:c7ea49d19055

Import library(debug) explicitly; removed spurious \n from debug messages.
author samer
date Thu, 09 Feb 2012 11:16:36 +0000
parents 256016cddcba
children d892e2012f79
files prolog/plml.pl
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/prolog/plml.pl	Thu Feb 09 10:57:10 2012 +0000
+++ b/prolog/plml.pl	Thu Feb 09 11:16:36 2012 +0000
@@ -216,6 +216,7 @@
 	Remove I from ml_expr//2 and add to mx type?
 */
 	  
+:- use_module(library(debug)).
 :- use_module(library(apply_macros)).
 :- use_module(library(utils), [hostname/1]).
 :- use_module(library(dcgu)).
@@ -315,7 +316,7 @@
 	;	Exec1=Exec
 	),
 	format(atom(Cmd),'~w ~w',[Exec1,Flags]),
-	debug(plml,'About to start Matlab with: ~w\n',[Cmd]),
+	debug(plml,'About to start Matlab with: ~w',[Cmd]),
 	mlOPEN(Cmd,Id),
 	set_flag(ml(Id),open),
 	(	member(noinit,Options) -> true
@@ -341,7 +342,7 @@
 %  Execute Matlab expression without returning any values.
 ml_exec(Id,X)  :- 
 	term_mlstring(Id,X,C), !, 
-	debug(plml,'plml:ml_exec>> ~s\n',[C]),
+	debug(plml,'plml:ml_exec>> ~s',[C]),
 	mlEXEC(Id,C).
 
 %% ml_eval(+Id:ml_eng, +Expr:ml_expr, +Types:list(type), -Res:list(ml_val)) is det.