execution count (if bb_annotate_all_lines is set). */
if (b->is_func)
{
- sprintf (p, "%lu", b->ncalls);
- p += strlen (p);
+ p += sprintf (p, "%lu", b->ncalls);
last_count = b->ncalls;
last_print = last_count;
ncalls = b->ncalls;
else if (bb_annotate_all_lines
&& b->bb_addr[0] && b->bb_addr[0] > b->addr)
{
- sprintf (p, "%lu", last_count);
- p += strlen (p);
+ p += sprintf (p, "%lu", last_count);
last_print = last_count;
ncalls = last_count;
ncalls_set = 1;
if (p > tmpbuf)
*p++ = ',';
- sprintf (p, "%lu", last_count);
- p += strlen (p);
+ p += sprintf (p, "%lu", last_count);
last_print = last_count;
}
if (bb_annotate_all_lines && p == tmpbuf)
{
- sprintf (p, "%lu", last_count);
- p += strlen (p);
+ p += sprintf (p, "%lu", last_count);
ncalls = last_count;
ncalls_set = 1;
}