summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-22 14:53:35 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-22 14:53:35 +0000
commit0e72b96e3d09b83d3bf845b737363ad835596550 (patch)
tree07f61e20aec22bc08aabd7d40fa06a420785c0dd
parent1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352 (diff)
downloadldetect-0e72b96e3d09b83d3bf845b737363ad835596550.tar
ldetect-0e72b96e3d09b83d3bf845b737363ad835596550.tar.gz
ldetect-0e72b96e3d09b83d3bf845b737363ad835596550.tar.bz2
ldetect-0e72b96e3d09b83d3bf845b737363ad835596550.tar.xz
ldetect-0e72b96e3d09b83d3bf845b737363ad835596550.zip
see changelog
-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");
}