From 5a745de5c76a3da3d0d0f5cda6e64922cb55cdab Mon Sep 17 00:00:00 2001 From: david Date: Tue, 6 Jan 2009 21:57:51 +0000 Subject: [PATCH] Put the "SCRIPT ENGINE:" prefix before NSE script start/stop messages. --- nse_main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nse_main.cc b/nse_main.cc index 009478a87..2ceba91ed 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -386,11 +386,11 @@ void log_script_started(const thread_record &thr) { if (thr.rr.type == 0) /* hostrule */ log_write(LOG_STDOUT, - "Starting '%s' against %s (thread %p).\n", + "%s: Starting '%s' against %s (thread %p).\n", SCRIPT_ENGINE, filename, thr.rr.host->targetipstr(), (void *) thr.thread); else /* portrule */ log_write(LOG_STDOUT, - "Starting '%s' against %s:%d (thread %p).\n", + "%s: Starting '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE, filename, thr.rr.host->targetipstr(), thr.rr.port->portno, (void *) thr.thread); } @@ -405,11 +405,11 @@ void log_script_finished(const thread_record &thr) { if (thr.rr.type == 0) /* hostrule */ log_write(LOG_STDOUT, - "Finished '%s' against %s (thread %p).\n", + "%s: Finished '%s' against %s (thread %p).\n", SCRIPT_ENGINE, filename, thr.rr.host->targetipstr(), (void *) thr.thread); else /* portrule */ log_write(LOG_STDOUT, - "Finished '%s' against %s:%d (thread %p).\n", + "%s: Finished '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE, filename, thr.rr.host->targetipstr(), thr.rr.port->portno, (void *) thr.thread); }