nv_driver: use field width format to dump chip family
PATCH 1/1 nv_driver: use field width format to dump chip family
Is this the correct maillist to post things about xf86-video-nouveau?
This is my first nouveau patch, since I had a laptop with a GeForce 9300M GS card, I will play with it now.
This patch is just clean and simplified of codes.
--- src/nv_driver.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
src/nv_driver.c +1 -8
@@ -182,14 +182,7 @@ NVIdentify(int flags) family = NVKnownFamilies;while (family->name && family->chipset) { -size_t len =strlen (family->name); -xf86ErrorF ("\t%s" , family->name); -while (len<maxLen+1 ) - { -xf86ErrorF (" " ); - len++; - } -xf86ErrorF ("(%s)\n" , family->chipset); + xf86ErrorF("\t%-*s (%s)\n", maxLen, family->name,
family->chipset);
family++;
}}
Signature · 1 line
1.6.4.GIT
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau