aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parse-displayid-block.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index df55e38..ad873a3 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -1451,9 +1451,9 @@ void edid_state::parse_displayid_block(const unsigned char *x)
fail("DisplayID Base Block has no product type.\n");
if (ext_count != dispid.preparse_displayid_blocks - 1)
fail("Expected %u DisplayID Extension Block%s, but got %u\n",
- dispid.preparse_displayid_blocks - 1,
- dispid.preparse_displayid_blocks == 2 ? "" : "s",
- ext_count);
+ ext_count,
+ ext_count > 1 ? "s" : "",
+ dispid.preparse_displayid_blocks - 1);
} else {
if (prod_type)
fail("Product Type should be 0 in extension block.\n");

Privacy Policy