mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Fix a malformed warn() statement
This commit is contained in:
@@ -41,13 +41,13 @@
|
|||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/board.h>
|
#include <nuttx/board.h>
|
||||||
#include <nuttx/power/pm.h>
|
#include <nuttx/power/pm.h>
|
||||||
#include <arch/irq.h>
|
#include <arch/irq.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "up_arch.h"
|
#include "up_arch.h"
|
||||||
#include "nvic.h"
|
#include "nvic.h"
|
||||||
#include "stm32_pwr.h"
|
#include "stm32_pwr.h"
|
||||||
@@ -75,10 +75,6 @@
|
|||||||
|
|
||||||
#define PM_IDLE_DOMAIN 0 /* Revisit */
|
#define PM_IDLE_DOMAIN 0 /* Revisit */
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Types
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Function Prototypes
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -87,10 +83,6 @@
|
|||||||
static int button_handler(int irq, FAR void *context);
|
static int button_handler(int irq, FAR void *context);
|
||||||
#endif /* CONFIG_ARCH_IRQBUTTONS */
|
#endif /* CONFIG_ARCH_IRQBUTTONS */
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -142,7 +134,7 @@ void stm32_pm_buttons(void)
|
|||||||
|
|
||||||
if (oldhandler != NULL)
|
if (oldhandler != NULL)
|
||||||
{
|
{
|
||||||
warn(LOG_WARNING, "WARNING: oldhandler:%p is not NULL! "
|
warn("WARNING: oldhandler:%p is not NULL! "
|
||||||
"Button events may be lost or aliased!\n",
|
"Button events may be lost or aliased!\n",
|
||||||
oldhandler);
|
oldhandler);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user