lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 11 Jun 2016 17:18:13 +0200
From:	Heinrich Schuchardt <xypron.glpk@....de>
To:	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...hat.com>,
	Arnaldo Carvalho de Melo <acme@...nel.org>
Cc:	Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
	linux-kernel@...r.kernel.org,
	Heinrich Schuchardt <xypron.glpk@....de>
Subject: [PATCH 1/1] perf tools: use correct format specifier

waking is defined as unsigned long. So use %lu for printing.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@....de>
---
 tools/perf/builtin-record.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index d4cf1b0..4a470646 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -917,7 +917,8 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
 			trigger_ready(&switch_output_trigger);
 
 			if (!quiet)
-				fprintf(stderr, "[ perf record: dump data: Woken up %ld times ]\n",
+				fprintf(stderr,
+					"[ perf record: dump data: Woken up %lu times ]\n",
 					waking);
 			waking = 0;
 			fd = record__switch_output(rec, false);
@@ -968,7 +969,9 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
 	}
 
 	if (!quiet)
-		fprintf(stderr, "[ perf record: Woken up %ld times to write data ]\n", waking);
+		fprintf(stderr,
+			"[ perf record: Woken up %lu times to write data ]\n",
+			waking);
 
 out_child:
 	if (forks) {
-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ