diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 13:15:39 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 13:15:39 +0000 |
commit | 0a9f2ccd983cdee30712812b718a7c03ce1eade7 (patch) | |
tree | 0e66fe64f6a2d6e36ffd4a69b74a83a8804072d7 | |
parent | 0aae3559a5717e36c34a80a90033bf054f8acc2f (diff) | |
download | monitor-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.
-rwxr-xr-x | monitor-parse-edid | 5 |
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; |