video: Handle the 'bell' character
[platform/kernel/u-boot.git] / test / dm / video.c
index 9f5e7fc..4e3f9d5 100644 (file)
@@ -106,14 +106,14 @@ static int dm_test_video_text(struct unit_test_state *uts)
        ut_asserteq(46, compress_frame_buffer(dev));
 
        for (i = 0; i < 20; i++)
-               vidconsole_putc_xy(con, i * 8, 0, ' ' + i);
+               vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i);
        ut_asserteq(273, compress_frame_buffer(dev));
 
        vidconsole_set_row(con, 0, WHITE);
        ut_asserteq(46, compress_frame_buffer(dev));
 
        for (i = 0; i < 20; i++)
-               vidconsole_putc_xy(con, i * 8, 0, ' ' + i);
+               vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i);
        ut_asserteq(273, compress_frame_buffer(dev));
 
        return 0;
@@ -124,7 +124,7 @@ DM_TEST(dm_test_video_text, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
 static int dm_test_video_chars(struct unit_test_state *uts)
 {
        struct udevice *dev, *con;
-       const char *test_string = "Well\b\b\b\bxhe is\r \n\ta very modest  \bman\n\t\tand Has much to\b\bto be modest about.";
+       const char *test_string = "Well\b\b\b\bxhe is\r \n\ta very \amodest  \bman\n\t\tand Has much to\b\bto be modest about.";
        const char *s;
 
        ut_assertok(uclass_get_device(UCLASS_VIDEO, 0, &dev));