Skip to contentSkip to conversation

taskstats: use family->version instead of TASKSTATS_GENL_VERSION

PATCH New Hui Su 1 participant 1 message Oct 14, 2020 Taskstats statistics interface

lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 taskstats: use family->version instead of TASKSTATS_GENL_VERSION

use family->version instead of the hrad code(TASKSTATS_GENL_VERSION).

---
 kernel/taskstats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/taskstats.c +1 -1
index e2ac0e37c4ae..8364663ca07d 100644
@@ -713,7 +713,7 @@ static int __init taskstats_init(void)
 		return rc;
 
 	family_registered = 1;
-	pr_info("registered taskstats version %d\n", TASKSTATS_GENL_VERSION);
+	pr_info("registered taskstats version %d\n", family->version);
 	return 0;
 }
 
Signature · 1 line
2.25.1