]> Git Repo - J-u-boot.git/blobdiff - lib/efi_selftest/efi_selftest_event_groups.c
ARM: dts: at91: sama7g5: add assigned clocks for sdmmc1
[J-u-boot.git] / lib / efi_selftest / efi_selftest_event_groups.c
index 9b3c5132ef741f6d61c519de4f072440b5590423..6dcde50648b8da1c55289f826257891f7ccc7a3c 100644 (file)
@@ -19,7 +19,7 @@ static efi_guid_t event_group =
                 0x0e, 0x5b, 0x45, 0xc0, 0x56, 0x91);
 
 /*
- * Notification function, increments the notfication count if parameter
+ * Notification function, increments the notification count if parameter
  * context is provided.
  *
  * @event      notified event
@@ -80,12 +80,11 @@ static int execute(void)
                        return EFI_ST_FAILURE;
                }
                for (j = 0; j < GROUP_SIZE; ++j) {
-                       if (counter[j] != i) {
+                       if (counter[j] != 2 * i + 1) {
                                efi_st_printf("i %u, j %u, count %u\n",
                                              (unsigned int)i, (unsigned int)j,
                                              (unsigned int)counter[j]);
-                               efi_st_error(
-                                       "Notification function was called\n");
+                               efi_st_error("Notification function was not called\n");
                                return EFI_ST_FAILURE;
                        }
                        /* Clear signaled state */
@@ -94,7 +93,7 @@ static int execute(void)
                                efi_st_error("Event was not signaled\n");
                                return EFI_ST_FAILURE;
                        }
-                       if (counter[j] != i) {
+                       if (counter[j] != 2 * i + 1) {
                                efi_st_printf("i %u, j %u, count %u\n",
                                              (unsigned int)i, (unsigned int)j,
                                              (unsigned int)counter[j]);
@@ -109,12 +108,12 @@ static int execute(void)
                                        "Signaled state not cleared\n");
                                return EFI_ST_FAILURE;
                        }
-                       if (counter[j] != i + 1) {
+                       if (counter[j] != 2 * i + 2) {
                                efi_st_printf("i %u, j %u, count %u\n",
                                              (unsigned int)i, (unsigned int)j,
                                              (unsigned int)counter[j]);
                                efi_st_error(
-                                       "Nofification function not called\n");
+                                       "Notification function not called\n");
                                return EFI_ST_FAILURE;
                        }
                }
This page took 0.029704 seconds and 4 git commands to generate.