devvga: fix mistake

This commit is contained in:
cinap_lenrek 2017-04-02 20:10:44 +02:00
parent a6d852d0a6
commit 8ea31ae7b2

View file

@ -205,7 +205,8 @@ vgaread(Chan* c, void* a, long n, vlong off)
p = seprint(p, e, "addr p %#p v %#p size %#ux\n", p = seprint(p, e, "addr p %#p v %#p size %#ux\n",
scr->paddr, scr->vaddr, scr->apsize); scr->paddr, scr->vaddr, scr->apsize);
p = seprint(p, e, "softscreen %s\n", scr->softscreen ? "on" : "off"); p = seprint(p, e, "softscreen %s\n", scr->softscreen ? "on" : "off");
n = readstr(offset, a, p - s, s); USED(p);
n = readstr(offset, a, n, s);
poperror(); poperror();
free(s); free(s);