From: Craig Small Date: Tue, 24 Nov 2009 00:00:37 +0000 (+1100) Subject: skill: add CR to warning line X-Git-Tag: v3.3.2~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86fb879a0de9de08f2cb1a97789e0a5542a48043;p=procps-ng skill: add CR to warning line A patch from Debian. Bug-Debian: http://bugs.debian.org/331419 Bug-Debian: http://bugs.debian.org/331419 Backported-by: Sami Kerola --- diff --git a/skill.c b/skill.c index 1aa1a54d..c0afe18a 100644 --- a/skill.c +++ b/skill.c @@ -127,7 +127,7 @@ static void check_proc(int pid){ sprintf(buf, "/proc/%d/stat", pid); /* pid (cmd) state ppid pgrp session tty */ fd = open(buf,O_RDONLY); if(fd==-1){ /* process exited maybe */ - if(pids && w_flag) printf("WARNING: process %d could not be found.",pid); + if(pids && w_flag) printf("WARNING: process %d could not be found.\n",pid); return; } fstat(fd, &statbuf); @@ -340,7 +340,7 @@ static void skillsnice_usage(void){ }else{ fprintf(stderr, "Usage: snice [new priority] [options] process selection criteria\n" - "Example: snice netscape crack +7\n" + "Example: snice +7 netscape crack\n" "\n" "The default priority is +4. (snice +4 ...)\n" "Priority numbers range from +20 (slowest) to -20 (fastest).\n"