aboutsummaryrefslogtreecommitdiffstats
path: root/nlplug-findfs.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-23 21:43:28 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-23 21:49:28 +0100
commite745dd2a6e97a80f630621c6aa3bf7d4f9b767c1 (patch)
tree4c0f2974ca3298cecc85229f4101e2c3c03080dd /nlplug-findfs.c
parent155c5fa5816cc6d942e531d525493318ceae8fd6 (diff)
downloadmkinitfs-e745dd2a6e97a80f630621c6aa3bf7d4f9b767c1.tar.bz2
mkinitfs-e745dd2a6e97a80f630621c6aa3bf7d4f9b767c1.tar.xz
nlplug-findfs: improve debug info
- print only once when we reset timeout - print what the timeout was set to on exit This helps to show if what we were looking for was found or not
Diffstat (limited to 'nlplug-findfs.c')
-rw-r--r--nlplug-findfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c
index 5f6dc5e..b015fb4 100644
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -799,7 +799,7 @@ int main(int argc, char *argv[])
err(1, "poll");
}
if (r == 0) {
- dbg("exit due to timeout");
+ dbg("exit due to timeout (%i)", conf.timeout);
break;
}
@@ -848,7 +848,8 @@ int main(int argc, char *argv[])
if ((found & FOUND_DEVICE)
|| ((found & FOUND_BOOTREPO) &&
(found & FOUND_APKOVL))) {
- dbg("setting timeout to 0");
+ if (conf.timeout)
+ dbg("FOUND! setting timeout to 0");
conf.timeout = 0;
}
}