summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldetect.spec5
-rw-r--r--lspcidrake.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ldetect.spec b/ldetect.spec
index b26d35c..8e0e5f9 100644
--- a/ldetect.spec
+++ b/ldetect.spec
@@ -1,6 +1,6 @@
%define name ldetect
%define version 0.2.3
-%define release 1mdk
+%define release 2mdk
Name: %{name}
Version: %{version}
@@ -47,6 +47,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*
%changelog
+* Fri Dec 22 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.2.3-2mdk
+- prettier printing for lspcidrake
+
* Sat Dec 16 2000 Pixel <pixel@mandrakesoft.com> 0.2.3-1mdk
- now detect usb
diff --git a/lspcidrake.c b/lspcidrake.c
index cb3b2da..eb312c2 100644
--- a/lspcidrake.c
+++ b/lspcidrake.c
@@ -7,7 +7,7 @@ void pci_printit(struct pciusb_entries entries) {
int i;
for (i = 0; i < entries.nb; i++) {
struct pciusb_entry e = entries.entries[i];
- printf("%s:\t%s", e.module ? e.module : "unknown", e.text);
+ printf("%-16s: %s", e.module ? e.module : "unknown", e.text);
if (e.class) {
const char *class = pci_class2text(e.class);
if (strcmp(class, "NOT_DEFINED") != 0) printf(" [%s]", class);
@@ -20,7 +20,7 @@ void usb_printit(struct pciusb_entries entries) {
int i;
for (i = 0; i < entries.nb; i++) {
struct pciusb_entry e = entries.entries[i];
- printf("%s:\t%s", e.module ? e.module : "unknown", e.text);
+ printf("%-16s: %s", e.module ? e.module : "unknown", e.text);
if (e.class) printf(" [%s]", usb_class2text(e.class));
printf("\n");
}