!26 Fix typos in error messages
From: @Bolehu Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
9990706047
41
backport-trace-cmd-report-Fix-typos-in-error-messages.patch
Normal file
41
backport-trace-cmd-report-Fix-typos-in-error-messages.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From 9fd5f8ecd0bb98b6fdcfe75118b535f613226b9f Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
|
||||||
|
Date: Tue, 14 Sep 2021 16:12:13 +0300
|
||||||
|
Subject: [PATCH] trace-cmd report: Fix typos in error messages
|
||||||
|
|
||||||
|
Fixed typos in "trace-cmd report" messages that report reading and
|
||||||
|
parsing errors.
|
||||||
|
|
||||||
|
Link: https://lore.kernel.org/linux-trace-devel/20210914131232.3964615-3-tz.stoyanov@gmail.com
|
||||||
|
|
||||||
|
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
|
||||||
|
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
||||||
|
---
|
||||||
|
tracecmd/trace-read.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c
|
||||||
|
index 6f43c1d2..31724b09 100644
|
||||||
|
--- a/tracecmd/trace-read.c
|
||||||
|
+++ b/tracecmd/trace-read.c
|
||||||
|
@@ -1290,7 +1290,7 @@ static void read_data_info(struct list_head *handle_list, enum output_type otype
|
||||||
|
die("error in reading buffer instance");
|
||||||
|
new_handle = tracecmd_buffer_instance_handle(handles->handle, i);
|
||||||
|
if (!new_handle) {
|
||||||
|
- warning("could not retreive handle %s", name);
|
||||||
|
+ warning("could not retrieve handle %s", name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
add_handle(new_handle, name);
|
||||||
|
@@ -1324,7 +1324,7 @@ static void read_data_info(struct list_head *handle_list, enum output_type otype
|
||||||
|
if (last_record) {
|
||||||
|
int cpu = last_record->cpu;
|
||||||
|
if (cpu >= last_handle->cpus)
|
||||||
|
- die("cpu %d creater than %d\n", cpu, last_handle->cpus);
|
||||||
|
+ die("cpu %d greater than %d\n", cpu, last_handle->cpus);
|
||||||
|
if (tscheck &&
|
||||||
|
last_handle->last_timestamp[cpu] > last_record->ts) {
|
||||||
|
errno = 0;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,11 +1,14 @@
|
|||||||
Name: trace-cmd
|
Name: trace-cmd
|
||||||
Version: 2.9.2
|
Version: 2.9.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A front-end for Ftrace
|
Summary: A front-end for Ftrace
|
||||||
License: GPLv2 and LGPLv2
|
License: GPLv2 and LGPLv2
|
||||||
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
|
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
|
||||||
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/%{name}-v%{version}.tar.gz
|
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/%{name}-v%{version}.tar.gz
|
||||||
Source1: kernelshark.desktop
|
Source1: kernelshark.desktop
|
||||||
|
|
||||||
|
Patch0001: backport-trace-cmd-report-Fix-typos-in-error-messages.patch
|
||||||
|
|
||||||
BuildRequires: gcc xmlto asciidoc mlocate libxml2-devel chrpath
|
BuildRequires: gcc xmlto asciidoc mlocate libxml2-devel chrpath
|
||||||
BuildRequires: gtk2-devel glib2-devel desktop-file-utils libtraceevent-devel
|
BuildRequires: gtk2-devel glib2-devel desktop-file-utils libtraceevent-devel
|
||||||
Provides: kernelshark
|
Provides: kernelshark
|
||||||
@ -64,6 +67,9 @@ echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.co
|
|||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 06 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-4
|
||||||
|
- trace-cmd report: Fix typos in error messages
|
||||||
|
|
||||||
* Tue Dec 06 2022 yaoxin <yaoxin30@h-partners.com> - 2.9.2-3
|
* Tue Dec 06 2022 yaoxin <yaoxin30@h-partners.com> - 2.9.2-3
|
||||||
- Add /sbin/ldconfig to post and postun
|
- Add /sbin/ldconfig to post and postun
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user