From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org,
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Subject: [PATCH] libtracefs: Fix code indentation
Date: Fri, 10 Sep 2021 19:30:07 +0300 [thread overview]
Message-ID: <20210910163007.324033-1-y.karadz@gmail.com> (raw)
This is a code style fix. No functional changes are introduced.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
include/tracefs.h | 7 +++----
src/tracefs-hist.c | 12 ++++++------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/include/tracefs.h b/include/tracefs.h
index 9cfd257..b4aa75d 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -279,12 +279,11 @@ enum tracefs_hist_sort_direction {
struct tracefs_hist;
-void tracefs_hist_free
-(struct tracefs_hist *hist);
+void tracefs_hist_free(struct tracefs_hist *hist);
struct tracefs_hist *
tracefs_hist_alloc(struct tracefs_instance * instance,
- const char *system, const char *event,
- const char *key, enum tracefs_hist_key_type type);
+ const char *system, const char *event,
+ const char *key, enum tracefs_hist_key_type type);
int tracefs_hist_add_key(struct tracefs_hist *hist, const char *key,
enum tracefs_hist_key_type type);
int tracefs_hist_add_value(struct tracefs_hist *hist, const char *value);
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c
index 8b90787..6519f7e 100644
--- a/src/tracefs-hist.c
+++ b/src/tracefs-hist.c
@@ -158,8 +158,8 @@ void tracefs_hist_free(struct tracefs_hist *hist)
*/
struct tracefs_hist *
tracefs_hist_alloc(struct tracefs_instance * instance,
- const char *system, const char *event,
- const char *key, enum tracefs_hist_key_type type)
+ const char *system, const char *event,
+ const char *key, enum tracefs_hist_key_type type)
{
struct tracefs_hist *hist;
int ret;
@@ -385,10 +385,10 @@ add_sort_key(struct tracefs_hist *hist, const char *sort_key, char **list)
if (!key_list[i]) {
for (i = 0; val_list[i]; i++) {
- if (strcmp(val_list[i], sort_key) == 0)
- break;
- if (!val_list[i])
- return NULL;
+ if (strcmp(val_list[i], sort_key) == 0)
+ break;
+ if (!val_list[i])
+ return NULL;
}
}
--
2.30.2
reply other threads:[~2021-09-10 16:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210910163007.324033-1-y.karadz@gmail.com \
--to=y.karadz@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).