ASSERT EFI ERROR

From PhoenixWiki

Jump to: navigation, search

Prototype

#define ASSERT_EFI_ERROR(status)  if (EFI_ERROR(status))                \
   DEBUG_CODE ( {                                                      \
     DEBUG((EFI_D_ERROR, "\nASSERT!Status = 0x%x Info :",status));     \
     ASSERT(!EFI_ERROR(status));                                \
   } ) 

Description

Generate an ASSERT if the specified status value is an error.


Copyright (C) 2008 Phoenix Technologies Ltd. All Rights Reserved.

Personal tools