Skip to content

Commit 1d1759d

Browse files
committed
Adjust text spacing
1 parent 78b4643 commit 1d1759d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sim/regaccess-riscv.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void Histogram_PrettyPrint(Engine *E, State *S, Histogram *histogram){
229229
/*
230230
* Pretty-print ("ASCII-graph") a normalised histogram representation, like so:
231231
*
232-
* +-> bin value
232+
* +-----> bin value
233233
* |
234234
* | #
235235
* | ##
@@ -257,11 +257,11 @@ void Histogram_PrettyPrint(Engine *E, State *S, Histogram *histogram){
257257
}
258258

259259
mprint(E, S, nodeinfo, "Histogram mean frequency (mean bin occupation): %.3f\n", meanFreq);
260-
mprint(E, S, nodeinfo, "bin | val | graphical representation (scaled rel. to mean freq)\n");
261-
mprint(E, S, nodeinfo, "----+-----+----------------------------------------------------\n");
260+
mprint(E, S, nodeinfo, "bin | value | graphical representation (scaled rel. to mean freq)\n");
261+
mprint(E, S, nodeinfo, "----+-------+----------------------------------------------------\n");
262262

263263
for (int i = 0; i < kNBINS; i++){
264-
mprint(E, S, nodeinfo, "%03u | %-3u | ", i, histogram->bins[i]);
264+
mprint(E, S, nodeinfo, "%03u | %-5u | ", i, histogram->bins[i]);
265265
/*mprint(E, S, nodeinfo, "%f\n", (normalised[i]));*/
266266
/*mprint(E, S, nodeinfo, "%f\n", (normalised[i]*FULLSCALE_NUMBER_OF_CHARS));*/
267267
for (int j = 0; j < (int)(normalised[i]*FULLSCALE_NUMBER_OF_CHARS); j++){

0 commit comments

Comments
 (0)