Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2015 21:05:53 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r281235 - stable/10/usr.sbin/pmcstudy
Message-ID:  <201504072105.t37L5r4D052971@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Tue Apr  7 21:05:52 2015
New Revision: 281235
URL: https://svnweb.freebsd.org/changeset/base/281235

Log:
  MFC of r280697 and r280698
  
  Sponsored by:	Netflix Inc.

Added:
  stable/10/usr.sbin/pmcstudy/pmcstudy.8
     - copied, changed from r280697, head/usr.sbin/pmcstudy/pmcstudy.8
Deleted:
  stable/10/usr.sbin/pmcstudy/pmcstudy.1
Modified:
  stable/10/usr.sbin/pmcstudy/Makefile
  stable/10/usr.sbin/pmcstudy/pmcstudy.c

Modified: stable/10/usr.sbin/pmcstudy/Makefile
==============================================================================
--- stable/10/usr.sbin/pmcstudy/Makefile	Tue Apr  7 20:29:03 2015	(r281234)
+++ stable/10/usr.sbin/pmcstudy/Makefile	Tue Apr  7 21:05:52 2015	(r281235)
@@ -2,6 +2,7 @@
 # $FreeBSD$
 
 PROG=	pmcstudy
+MAN=	pmcstudy.8
 SRCS= pmcstudy.c eval_expr.c
 CFLAGS+= -Wall -Werror
 

Copied and modified: stable/10/usr.sbin/pmcstudy/pmcstudy.8 (from r280697, head/usr.sbin/pmcstudy/pmcstudy.8)
==============================================================================
--- head/usr.sbin/pmcstudy/pmcstudy.8	Thu Mar 26 15:40:47 2015	(r280697, copy source)
+++ stable/10/usr.sbin/pmcstudy/pmcstudy.8	Tue Apr  7 21:05:52 2015	(r281235)
@@ -25,7 +25,7 @@
 .\" $FreeBSD$
 .\"
 .Dd Mar 26, 2015
-.Dt PMCSTUDY 1
+.Dt PMCSTUDY 8
 .Os
 .Sh NAME
 .Nm pmcstudy

Modified: stable/10/usr.sbin/pmcstudy/pmcstudy.c
==============================================================================
--- stable/10/usr.sbin/pmcstudy/pmcstudy.c	Tue Apr  7 20:29:03 2015	(r281234)
+++ stable/10/usr.sbin/pmcstudy/pmcstudy.c	Tue Apr  7 21:05:52 2015	(r281235)
@@ -2130,7 +2130,11 @@ test_for_a_pmc(const char *pmc, int out_
 					printf(" ");
 				}
 			}
-			printf("%s", &line[j]);
+			if (len) {
+				printf("%s", &line[j]);
+			} else {
+				printf("\n");
+			}
 			goto out;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504072105.t37L5r4D052971>