aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-02 13:15:39 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-02 13:15:39 +0000
commit0a9f2ccd983cdee30712812b718a7c03ce1eade7 (patch)
tree0e66fe64f6a2d6e36ffd4a69b74a83a8804072d7 /monitor-parse-edid
parent0aae3559a5717e36c34a80a90033bf054f8acc2f (diff)
downloadmonitor-edid-0a9f2ccd983cdee30712812b718a7c03ce1eade7.tar
monitor-edid-0a9f2ccd983cdee30712812b718a7c03ce1eade7.tar.gz
monitor-edid-0a9f2ccd983cdee30712812b718a7c03ce1eade7.tar.bz2
monitor-edid-0a9f2ccd983cdee30712812b718a7c03ce1eade7.tar.xz
monitor-edid-0a9f2ccd983cdee30712812b718a7c03ce1eade7.zip
Add warning for unhandled CEA mode when running in verbose mode.
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid5
1 files changed, 4 insertions, 1 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index 9e36539..c29f8e5 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -793,7 +793,10 @@ sub parse_edid {
foreach my $vmode (@vmodes) {
$h = get_many_bits($vmode, 'cea_video_data_block');
my $cea_mode = $cea_video_modes{$h->{mode}};
- next if !$cea_mode;
+ if (!$cea_mode) {
+ warn "parse_edid: unhandled CEA mode $h->{mode}\n" if $verbose;
+ next;
+ }
foreach my $pixclock (@{$cea_mode->{pixel_clock}}) {
my %det_mode = %$cea_mode;
$det_mode{pixel_clock} = $pixclock;