summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-28 13:06:48 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-28 13:06:48 +0000
commit51fb4f049b302a68bf2ed129c3c8aa0ad99853d5 (patch)
tree632d6062ab630397ac4cd30374571a302cf5d9b4
parent273812e62286f29262095d865b9795bb01ab147a (diff)
downloadmandi-51fb4f049b302a68bf2ed129c3c8aa0ad99853d5.tar
mandi-51fb4f049b302a68bf2ed129c3c8aa0ad99853d5.tar.gz
mandi-51fb4f049b302a68bf2ed129c3c8aa0ad99853d5.tar.bz2
mandi-51fb4f049b302a68bf2ed129c3c8aa0ad99853d5.tar.xz
mandi-51fb4f049b302a68bf2ed129c3c8aa0ad99853d5.zip
add some verbosity in the reports listing
-rw-r--r--src/plugins/ifw/report_list.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/ifw/report_list.c b/src/plugins/ifw/report_list.c
index 290746c..ed2f3c2 100644
--- a/src/plugins/ifw/report_list.c
+++ b/src/plugins/ifw/report_list.c
@@ -3,6 +3,10 @@
#include <stdio.h>
#include <stdlib.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
void report_list_init(report_list_t *list) {
INIT_LIST_HEAD(list);
}
@@ -73,8 +77,10 @@ void report_list_print(report_list_t *list) {
printf("* report list {\n");
__list_for_each(entry, list) {
report_list_cell_t *cell;
+ struct in_addr addr;
cell = list_entry(entry, report_list_cell_t, list);
- printf("%d,\n", cell->seq);
+ addr.s_addr = cell->info.s_addr;
+ printf("%s (%d),\n", inet_ntoa(addr), cell->seq);
}
printf("} report list *\n");
}