drm/amdgpu/vega20: make power profile output more consistent
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 03:55:47 +0000 (22:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 21:45:59 +0000 (16:45 -0500)
Make the profile name line match previous generations more closely.

E.g.,
0 3D_FULL_SCREEN :
vs:
0(3D_FULL_SCREEN )

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c

index ee38ed5..7884ae3 100644 (file)
@@ -3204,7 +3204,7 @@ static int vega20_get_power_profile_mode(struct pp_hwmgr *hwmgr, char *buf)
                                "[GetPowerProfile] Failed to get activity monitor!",
                                return result);
 
-               size += sprintf(buf + size, "%2d(%14s%s)\n",
+               size += sprintf(buf + size, "%2d %14s%s:\n",
                        i, profile_name[i], (i == hwmgr->power_profile_mode) ? "*" : " ");
 
                size += sprintf(buf + size, "%19s %d(%13s) %7d %7d %7d %7d %7d %7d %7d %7d %7d\n",