linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] libtracefs: Fix code indentation
@ 2021-09-24 14:57 Yordan Karadzhov (VMware)
  0 siblings, 0 replies; only message in thread
From: Yordan Karadzhov (VMware) @ 2021-09-24 14:57 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)

This is a code style fix. No functional changes are introduced.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---

I am re-sending this patch because the Tzvetomir reported problems
applying the previous version.

 include/tracefs.h  |  3 +--
 src/tracefs-hist.c | 12 ++++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/include/tracefs.h b/include/tracefs.h
index 25abbdc..9d84777 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -309,8 +309,7 @@ enum tracefs_compare {
 	TRACEFS_COMPARE_AND,
 };
 
-void tracefs_hist_free
-(struct tracefs_hist *hist);
+void tracefs_hist_free(struct tracefs_hist *hist);
 struct tracefs_hist *
 tracefs_hist_alloc(struct tep_handle *tep,
 		   const char *system, const char *event,
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c
index 003715f..eeb8374 100644
--- a/src/tracefs-hist.c
+++ b/src/tracefs-hist.c
@@ -206,8 +206,8 @@ void tracefs_hist_free(struct tracefs_hist *hist)
  */
 struct tracefs_hist *
 tracefs_hist_alloc(struct tep_handle *tep,
-			const char *system, const char *event_name,
-			const char *key, enum tracefs_hist_key_type type)
+		   const char *system, const char *event_name,
+		   const char *key, enum tracefs_hist_key_type type)
 {
 	struct tep_event *event;
 	struct tracefs_hist *hist;
@@ -366,10 +366,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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-24 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-24 14:57 [PATCH v2] libtracefs: Fix code indentation Yordan Karadzhov (VMware)

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).