Skip to contentSkip to conversation

libtracefs: Fix code indentation

PATCH Superseded Yordan Karadzhov (VMware) 1 participant 1 message Sep 10, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Fix code indentation

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

---
 include/tracefs.h  |  7 +++----
 src/tracefs-hist.c | 12 ++++++------
 2 files changed, 9 insertions(+), 10 deletions(-)
include/tracefs.h +3 -4
index 9cfd257..b4aa75d 100644
@@ -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);
src/tracefs-hist.c +6 -6
index 8b90787..6519f7e 100644
@@ -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;
 		}
 	}
 
Signature · 1 line
2.30.2