diff --git a/pgrep.c b/pgrep.c index 0c193093..9473a1ea 100644 --- a/pgrep.c +++ b/pgrep.c @@ -779,7 +779,7 @@ int main (int argc, char **argv) if (errno==ESRCH) // gone now, which is OK continue; - xwarn(_("killing pid %ld failed")); + xwarn(_("killing pid %ld failed"), procs[i].num); } } else { if (opt_count) { diff --git a/vmstat.c b/vmstat.c index 8fbe5455..5348cee5 100644 --- a/vmstat.c +++ b/vmstat.c @@ -356,7 +356,7 @@ static int diskpartition_format(const char *partition_name) struct disk_stat *disks; struct partition_stat *partitions, *current_partition = NULL; unsigned long ndisks, j, k, npartitions; - const char format[] = "%20u %10llu %10u %10u\n"; + const char format[] = "%20u %10llu %10u %10llu\n"; fDiskstat = fopen("/proc/diskstats", "rb"); if (!fDiskstat) diff --git a/w.c b/w.c index e3e9dbb0..072cdc09 100644 --- a/w.c +++ b/w.c @@ -392,7 +392,7 @@ int main(int argc, char **argv) userlen = atoi(env_var); if (userlen < 8 || userlen > USERSZ) { xwarnx - (_("User length environment PROCPS_USERLEN must be between 8 and %d, ignoring.\n"), + (_("User length environment PROCPS_USERLEN must be between 8 and %zu, ignoring.\n"), USERSZ); userlen = 8; }