ipa: raspberrypi: Remove legacy Rasberry Pi logging

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman 2021-01-25 18:48:58 +00:00 committed by Laurent Pinchart
parent d97b1bcd2a
commit a258aa4615
2 changed files with 0 additions and 31 deletions

View file

@ -14,7 +14,6 @@
#include <map>
#include <atomic>
#include "logging.hpp"
#include "controller.hpp"
#include <boost/property_tree/ptree.hpp>

View file

@ -1,30 +0,0 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2019-2020, Raspberry Pi (Trading) Limited
*
* logging.hpp - logging macros
*/
#pragma once
#include <iostream>
#ifndef RPI_LOGGING_ENABLE
#define RPI_LOGGING_ENABLE 0
#endif
#ifndef RPI_WARNING_ENABLE
#define RPI_WARNING_ENABLE 1
#endif
#define RPI_LOG(stuff) \
do { \
if (RPI_LOGGING_ENABLE) \
std::cout << __FUNCTION__ << ": " << stuff << "\n"; \
} while (0)
#define RPI_WARN(stuff) \
do { \
if (RPI_WARNING_ENABLE) \
std::cout << __FUNCTION__ << " ***WARNING*** " \
<< stuff << "\n"; \
} while (0)