view: show scale with prefix in linear format

scan_delay_optimize
TT 6 years ago
parent 3e841920fb
commit 5b5a46556d

@ -681,6 +681,7 @@ void
trace_get_info(int t, char *buf, int len)
{
const char *type = get_trace_typename(t);
int n;
switch (trace[t].type) {
case TRC_LOGMAG:
chsnprintf(buf, len, "%s %ddB/", type, (int)get_trace_scale(t));
@ -694,7 +695,8 @@ trace_get_info(int t, char *buf, int len)
chsnprintf(buf, len, "%s %.1fFS", type, get_trace_scale(t));
break;
default:
chsnprintf(buf, len, "%s %.1f/", type, get_trace_scale(t));
n = chsnprintf(buf, len, "%s ", type);
string_value_with_prefix(buf+n, len-n, get_trace_scale(t), '/');
break;
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.