Re: [Firebird-devel] Using string.printf()

2016-05-28 Thread Dimitry Sibiryakov
28.05.2016 21:34, Vlad Khorsun wrote: > It is useful to see formatted string contents during debugging. Often it > could > be seen even in release build Yes, but you can imagine what will happen if filename in example above includes "%s". -- WBR, SD.

Re: [Firebird-devel] Using string.printf()

2016-05-28 Thread Vlad Khorsun
28.05.2016 15:58, Dimitry Sibiryakov wrote: >Hello, All. > >What is advantage of following code > >> string err_msg; >> err_msg.printf("INTL module '%s' is of incompatible version number %d", >> filename.c_str(), version); >> gds__log(err_msg.c_str()); >

Re: [Firebird-devel] Using string.printf()

2016-05-28 Thread Dmitry Yemanov
28.05.2016 15:58, Dimitry Sibiryakov wrote: > > What is advantage of following code > >> string err_msg; >> err_msg.printf("INTL module '%s' is of incompatible version number %d", >> filename.c_str(), version); >> gds__log(err_msg.c_str()); > > over simpl