From: Tiago Vignatti Date: Wed, 12 May 2010 10:12:47 +0000 (+0300) Subject: vgaarb: decode should send new information to the kernel X-Git-Tag: libpciaccess-0.12.0~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f153de858032c95ea5844aa6e0f1c8dad7531da;p=platform%2Fupstream%2Flibpciaccess.git vgaarb: decode should send new information to the kernel This was introduced in e360c11c. Signed-off-by: Tiago Vignatti --- diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index a96aedf..f09d513 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -259,7 +259,7 @@ pci_device_vgaarb_decodes(int new_vgaarb_rsrc) if (dev->vgaarb_rsrc == new_vgaarb_rsrc) return 0; - len = snprintf(buf, BUFSIZE, "decodes %s", rsrc_to_str(dev->vgaarb_rsrc)); + len = snprintf(buf, BUFSIZE, "decodes %s", rsrc_to_str(new_vgaarb_rsrc)); ret = vgaarb_write(pci_sys->vgaarb_fd, buf, len); if (ret == 0) dev->vgaarb_rsrc = new_vgaarb_rsrc;