Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2018 15:05:45 +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-10@freebsd.org
Subject:   svn commit: r331301 - stable/10/sys/ddb
Message-ID:  <201803211505.w2LF5jx4002338@repo.freebsd.org>

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

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

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

Modified: stable/10/sys/ddb/db_script.c
==============================================================================
--- stable/10/sys/ddb/db_script.c	Wed Mar 21 15:05:08 2018	(r331300)
+++ stable/10/sys/ddb/db_script.c	Wed Mar 21 15:05:45 2018	(r331301)
@@ -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.w2LF5jx4002338>