Author: mvidner Date: Fri Aug 5 16:44:54 2011 New Revision: 65257 URL: http://svn.opensuse.org/viewcvs/yast?rev=65257&view=rev Log: Shorten long parameters in the backtrace. Modified: trunk/core/debugger/Debugger.cc Modified: trunk/core/debugger/Debugger.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/debugger/Debugger.cc?rev=65257&r1=65256&r2=65257&view=diff ============================================================================== --- trunk/core/debugger/Debugger.cc (original) +++ trunk/core/debugger/Debugger.cc Fri Aug 5 16:44:54 2011 @@ -250,7 +250,16 @@ result += " with paramters: "; for( int i = 0; i < paramcount ; i++ ) { - result += (*it)->params[0]->toString() + " "; + string param = (*it)->params[0]->toString(); + if (param.length() > 80) + { + param = "<too long>"; + } + result += param; + if (i < paramcount - 1) + { + result += ", "; + } } ++it; }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org