Commit 56b8ddda authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4dbf0329
......@@ -242,22 +242,18 @@ void _assert_pagev(const char *subj, Page **vok, int nok, Page **pagev, int n,
_gen_result(0, func, file, line, "%s failed", subj);
}
else {
char vstr[128], *s=&vstr[0];
int l = sizeof(vstr), d;
d = snprintf(s, l, "["); s += d; l -= d;
for (i=0; i<n; i++) {
d = snprintf(s, l, "%sp%ld", (i > 0 ? ", " : ""), pagev[i]->f_pgoffset);
s += d;
l -= d;
}
d = snprintf(s, l, "]");
s += d; l -= d;
char *vstr;
asprintf(&vstr, "[");
for (i=0; i<n; i++)
asprintf(&vstr, "%sp%ld", (i > 0 ? ", " : ""), pagev[i]->f_pgoffset);
asprintf(&vstr, "]");
pass("%s %s", subj, vstr);
free(vstr);
}
}
/* _check_mru checks that ram has MRU pages as specified by pagev */
/* _check_mru checks that ram has MRU pages as specified by pagev. */
void _check_mru(RAM *ram, Page *mruok[], int nok, const char *func, const char *file, int line) {
Page **mruv = NULL;
int n = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment