Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2018 15:05:09 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331300 - stable/11/sys/ddb
Message-ID:  <201803211505.w2LF59ba002250@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Mar 21 15:05:08 2018
New Revision: 331300
URL: https://svnweb.freebsd.org/changeset/base/331300

Log:
  MFC r330374: db_script_exec: use a saved script name when reporting commands executed

Modified:
  stable/11/sys/ddb/db_script.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ddb/db_script.c
==============================================================================
--- stable/11/sys/ddb/db_script.c	Wed Mar 21 14:47:17 2018	(r331299)
+++ stable/11/sys/ddb/db_script.c	Wed Mar 21 15:05:08 2018	(r331300)
@@ -294,7 +294,7 @@ db_script_exec(const char *scriptname, int warnifnotfo
 	buffer = drd->drd_buffer;
 	strcpy(buffer, dsp->ds_script);
 	while ((command = strsep(&buffer, ";")) != NULL) {
-		db_printf("db:%d:%s> %s\n", db_recursion, scriptname,
+		db_printf("db:%d:%s> %s\n", db_recursion, dsp->ds_scriptname,
 		    command);
 		db_command_trim(&command);
 		prev_jb = kdb_jmpbuf(jb);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803211505.w2LF59ba002250>