libcamera: Use the logger instead of cout
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
edbd2059d8
commit
cc7d204b2c
3 changed files with 11 additions and 5 deletions
|
@ -7,10 +7,14 @@
|
||||||
#ifndef __LIBCAMERA_LIBCAMERA_H__
|
#ifndef __LIBCAMERA_LIBCAMERA_H__
|
||||||
#define __LIBCAMERA_LIBCAMERA_H__
|
#define __LIBCAMERA_LIBCAMERA_H__
|
||||||
|
|
||||||
|
namespace libcamera {
|
||||||
|
|
||||||
class libcamera
|
class libcamera
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void init_lib(void);
|
void init_lib(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* __LIBCAMERA_LIBCAMERA_H__ */
|
#endif /* __LIBCAMERA_LIBCAMERA_H__ */
|
||||||
|
|
|
@ -5,13 +5,15 @@
|
||||||
* main.cpp - libcamera main class
|
* main.cpp - libcamera main class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <libcamera/libcamera.h>
|
#include <libcamera/libcamera.h>
|
||||||
|
|
||||||
using std::cout;
|
#include "log.h"
|
||||||
using std::endl;
|
|
||||||
|
namespace libcamera {
|
||||||
|
|
||||||
void libcamera::init_lib(void)
|
void libcamera::init_lib(void)
|
||||||
{
|
{
|
||||||
cout << "Lib Camera Init" << endl;
|
LOG(Info) << "Lib Camera Init";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
libcamera l = libcamera();
|
libcamera::libcamera l = libcamera::libcamera();
|
||||||
l.init_lib();
|
l.init_lib();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue