From 6b98d9940a2e93df25fd39febc51912db75fa474 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Tue, 7 Jul 2015 21:17:05 +0000 Subject: [PATCH] 6172 ::printf should increment dot Reviewed by: Toomas Soome Reviewed by: Jason King Reviewed by: Josef 'Jeff' Sipek Approved by: Dan McDonald --- usr/src/cmd/mdb/common/mdb/mdb_print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/mdb/common/mdb/mdb_print.c b/usr/src/cmd/mdb/common/mdb/mdb_print.c index 56275fdded..1d49bc3a6d 100644 --- a/usr/src/cmd/mdb/common/mdb/mdb_print.c +++ b/usr/src/cmd/mdb/common/mdb/mdb_print.c @@ -25,7 +25,7 @@ /* * Copyright (c) 2012, 2014 by Delphix. All rights reserved. - * Copyright (c) 2012 Joyent, Inc. All rights reserved. + * Copyright 2015 Joyent, Inc. * Copyright (c) 2014 Nexenta Systems, Inc. All rights reserved. */ @@ -3109,6 +3109,7 @@ cmd_printf(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) } mdb_printf("%s", last); + mdb_set_dot(addr + mdb_ctf_type_size(id)); return (DCMD_OK); } -- 2.11.4.GIT