aboutsummaryrefslogtreecommitdiff
path: root/scripts/diffconfig
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2023-03-20 10:31:25 -0700
committerRob Clark <[email protected]>2023-03-20 10:31:25 -0700
commite752ab11dcb48353727ea26eefd740155e028865 (patch)
treebbd47198be4e42bbf990096ca36e96f3da40cfb6 /scripts/diffconfig
parent1844e680d56bb0c4e0489138f2b7ba2dc1c988e3 (diff)
parent8bf6e20253b2d2b614f2c0b491f840e956fa6b05 (diff)
Merge remote-tracking branch 'drm/drm-next' into msm-next
Merge drm-next into msm-next to pick up external clk and PM dependencies for improved a6xx GPU reset sequence. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'scripts/diffconfig')
-rwxr-xr-xscripts/diffconfig16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/diffconfig b/scripts/diffconfig
index d5da5fa05d1d..43f0f3d273ae 100755
--- a/scripts/diffconfig
+++ b/scripts/diffconfig
@@ -65,7 +65,7 @@ def print_config(op, config, value, new_value):
else:
print(" %s %s -> %s" % (config, value, new_value))
-def main():
+def show_diff():
global merge_style
# parse command line args
@@ -129,4 +129,16 @@ def main():
for config in new:
print_config("+", config, None, b[config])
-main()
+def main():
+ try:
+ show_diff()
+ except BrokenPipeError:
+ # Python flushes standard streams on exit; redirect remaining output
+ # to devnull to avoid another BrokenPipeError at shutdown
+ devnull = os.open(os.devnull, os.O_WRONLY)
+ os.dup2(devnull, sys.stdout.fileno())
+ sys.exit(1) # Python exits with error code 1 on EPIPE
+
+
+if __name__ == '__main__':
+ main()