shithub: riscv

Download patch

ref: 0a96d33a1ce9eceb9856818df0fa49c0a6be46f8
parent: 7bf5c61ea57eebbc73ec5fb2d7ffe13c690a5e0a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 6 11:10:23 EDT 2020

devpnp: print pci membar as 64-bit uvlong

--- a/sys/src/9/port/devpnp.c
+++ b/sys/src/9/port/devpnp.c
@@ -544,7 +544,7 @@
 		for(i=0; i<nelem(p->mem); i++){
 			if(p->mem[i].size == 0)
 				continue;
-			w = seprint(w, ebuf, " %d:%.8lux %d", i, p->mem[i].bar, p->mem[i].size);
+			w = seprint(w, ebuf, " %d:%.8llux %d", i, p->mem[i].bar, p->mem[i].size);
 		}
 		*w++ = '\n';
 		*w = '\0';