Srinivas Rao. M wrote:
Hi Tim, Charles,
I am rather looking at a generic substitution where the number of open
quotes are matched, and then add an argument to log(). IN a generic
aproach we may have a variable number of arguments, just like thwe way
printf() supports.
The strings like module
Hi Vimmers,
I am tasked to replace the pattern
log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message,
status);
to
log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d
message,__FUNCTION__, status);
This pattern is appearing in hundreds of source files. Does anybody have
a
Srinivas Rao. M wrote:
Hi Vimmers,
I am tasked to replace the pattern
log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message,
status);
to
log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d
message,__FUNCTION__, status);
This pattern is appearing in hundreds of source
I am tasked to replace the pattern
log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message,
status);
to
log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d
message,__FUNCTION__, status);
Well, with unknown line-breaks, and not knowing which pieces are
subject to change,