const std::string & files_r ) const
{
printf( "%*s %*s %*s %-*s %-*s %-*s %-s\n",
- pid.size, pid_r.c_str(),
- ppid.size, ppid_r.c_str(),
- puid.size, puid_r.c_str(),
- login.size, login_r.c_str(),
- command.size, command_r.c_str(),
- service.size, (service_r.empty() ? " -" : service_r.c_str()),
+ (int)pid.size, pid_r.c_str(),
+ (int)ppid.size, ppid_r.c_str(),
+ (int)puid.size, puid_r.c_str(),
+ (int)login.size, login_r.c_str(),
+ (int)command.size, command_r.c_str(),
+ (int)service.size, (service_r.empty() ? " -" : service_r.c_str()),
files_r.c_str() );
}
{
std::cout << "Usage: " << progname << " [--help]" << std::endl;
std::cout << "List information about all running processe" << std::endl;
- std::cout << "which access deleted files or libraries." << std::endl;
+ std::cout << "which access deleted executables or libraries." << std::endl;
std::cout << " PID " << "process ID" << std::endl;
std::cout << " PPID " << "parent process ID" << std::endl;
std::cout << " UID " << "process user ID" << std::endl;
std::cout << " LOGIN " << "process login name" << std::endl;
std::cout << " COMMAND " << "process command name" << std::endl;
std::cout << " SERVICE " << "/etc/init.d/ script that might be used to restart the command (guessed)" << std::endl;
- std::cout << " FILES " << "list of deleted files or libraries accessed" << std::endl;
+ std::cout << " FILES " << "list of deleted executables or libraries accessed" << std::endl;
return 0;
}
std::cerr << progname << ": unexpected argument '" << argv[1] << "'" << std::endl;
zypp::CheckAccessDeleted checker(false); // wait for explicit call to check()
try {
- checker.check();
+ checker.check( /*verbose*/true );
}
catch( const zypp::Exception & err )
{