Commit 7b8054e1 authored by unknown's avatar unknown

Add temporary printouts

parent e61f8fff
...@@ -3164,6 +3164,7 @@ sub check_expected_crash_and_restart { ...@@ -3164,6 +3164,7 @@ sub check_expected_crash_and_restart {
# Remove all files and subdirectories of a directory # Remove all files and subdirectories of a directory
sub clean_dir { sub clean_dir {
my ($dir)= @_; my ($dir)= @_;
print "clean_dir: $dir\n";
finddepth( finddepth(
{ no_chdir => 1, { no_chdir => 1,
wanted => sub { wanted => sub {
...@@ -3173,11 +3174,13 @@ sub clean_dir { ...@@ -3173,11 +3174,13 @@ sub clean_dir {
# The dir to clean # The dir to clean
return; return;
} else { } else {
rmdir($_) or mtr_warning("rmdir failed: $!"); print "rmdir: '$_'\n";
rmdir($_) or mtr_warning("rmdir($_) failed: $!");
} }
} else { } else {
# Hopefully a file # Hopefully a file
unlink($_) or mtr_warning("unlink failed: $!"); print "unlink: '$_'\n";
unlink($_) or mtr_warning("unlink($_) failed: $!");
} }
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment