Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions axevent/send_event/app/send_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ gint main(void) {
GMainLoop* main_loop = NULL;
gdouble start_value = 0.0;

// Set up the user logging to syslog
openlog(NULL, LOG_PID, LOG_USER);
syslog(LOG_INFO, "Started logging from send event application");

// Event handler
Expand Down
2 changes: 0 additions & 2 deletions axevent/subscribe_to_event/app/subscribe_to_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ int main(void) {
guint subscription = 0;
guint token = 1234;

// Set up the user logging to syslog
openlog(NULL, LOG_PID, LOG_USER);
syslog(LOG_INFO, "Started logging from subscribe event application");

// Event handler
Expand Down
2 changes: 0 additions & 2 deletions axevent/subscribe_to_events/app/subscribe_to_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,6 @@ int main(void) {
// Initialize main loop
main_loop = g_main_loop_new(NULL, FALSE);

// Set up the user logging to syslog
openlog(NULL, LOG_PID, LOG_USER);
syslog(LOG_INFO, "Started logging from subscribe event application");

// Create an event handler
Expand Down
2 changes: 0 additions & 2 deletions axoverlay/app/axoverlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,6 @@ int main(void) {
gint camera_height = 0;
gint camera_width = 0;

openlog(NULL, LOG_PID, LOG_USER);

// Create a glib main loop
loop = g_main_loop_new(NULL, FALSE);
g_unix_signal_add(SIGTERM, signal_handler, loop);
Expand Down
2 changes: 0 additions & 2 deletions axparameter/app/axparameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ int main(void) {
GError* error = NULL;
GMainLoop* loop = NULL;

openlog(APP_NAME, LOG_PID, LOG_USER);

// Passing in APP_NAME gives access to this application's parameters without qualifiers and
// makes it possible to add or remove parameters.
AXParameter* handle = ax_parameter_new(APP_NAME, &error);
Expand Down
3 changes: 0 additions & 3 deletions axserialport/app/axserialport.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
/* AX Serial Port library. */
#include <axsdk/axserialport.h>

#define APP_NAME "axserialport"

/**
* MyConfigAndData contains application configuration and data.
*/
Expand Down Expand Up @@ -175,7 +173,6 @@ int main(void) {
g_unix_signal_add(SIGINT, signal_handler, loop);

/* Print some startup messages */
openlog(APP_NAME, LOG_PID, LOG_LOCAL4);
syslog(LOG_INFO, "Starting AxSerialPort application");

/* Create a configuration for the first port (port0) */
Expand Down
3 changes: 0 additions & 3 deletions axstorage/app/axstorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/* AX Storage library. */
#include <axsdk/axstorage.h>

#define APP_NAME "axstorage"

/**
* disk_item_t represents one storage device and its values.
*/
Expand Down Expand Up @@ -377,7 +375,6 @@ gint main(void) {
GMainLoop* loop = NULL;
gint ret = EXIT_SUCCESS;

openlog(APP_NAME, LOG_PID, LOG_USER);
syslog(LOG_INFO, "Start AXStorage application");

disks = ax_storage_list(&error);
Expand Down
2 changes: 0 additions & 2 deletions bounding-box/app/bounding_box_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ static void init_signals(void) {
}

int main(void) {
openlog(NULL, LOG_PID, LOG_USER);

init_signals();

for (bool once = true; running; once = false) {
Expand Down
3 changes: 0 additions & 3 deletions curl-openssl/app/curl_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ int main(void) {
"/usr/local/packages/curl_openssl/localdata/www.example.com.txt",
NULL};

// Start logging
openlog(NULL, LOG_PID, LOG_USER);

// Log the curl and openssl library versions used in the code
curl_version_info_data* ver = curl_version_info(CURLVERSION_NOW);
syslog(LOG_INFO,
Expand Down
3 changes: 0 additions & 3 deletions hello-world/app/hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
* This main function writes "hello_world" to the syslog.
*/
int main(void) {
/* Open the syslog to report messages for "hello_world" */
openlog("hello_world", LOG_PID | LOG_CONS, LOG_USER);

/* Choose between { LOG_INFO, LOG_CRIT, LOG_WARNING, LOG_ERR }*/
syslog(LOG_INFO, "Hello World!");
}
3 changes: 1 addition & 2 deletions licensekey/app/licensekey_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;

glob_app_name = g_path_get_basename(argv[0]);
openlog(glob_app_name, LOG_PID | LOG_CONS, LOG_USER);
loop = g_main_loop_new(NULL, FALSE);
loop = g_main_loop_new(NULL, FALSE);

check_license_status(NULL);
g_timeout_add_seconds(CHECK_SECS, check_license_status, NULL);
Expand Down
3 changes: 0 additions & 3 deletions object-detection-cv25/app/object_detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,6 @@ int main(int argc, char** argv) {
size_t numLabels = 0; // Number of entries in the labels array.
char* labelFileData = NULL; // Buffer holding the complete collection of label strings.

// Open the syslog to report messages for "object_detection"
openlog("object_detection", LOG_PID | LOG_CONS, LOG_USER);

args_t args;
if (!parseArgs(argc, argv, &args)) {
syslog(LOG_ERR, "%s: Could not parse arguments", __func__);
Expand Down
2 changes: 0 additions & 2 deletions object-detection-yolov5/app/object_detection_yolov5.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ int main(int argc, char** argv) {
model_tensor_output_t* tensor_outputs = NULL;
bbox_t* bbox = NULL;

openlog(APP_NAME, LOG_PID | LOG_CONS, LOG_USER);

// Stop main loop at signal
signal(SIGTERM, shutdown);
signal(SIGINT, shutdown);
Expand Down
3 changes: 0 additions & 3 deletions object-detection/app/object_detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,6 @@ int main(int argc, char** argv) {
size_t numLabels = 0; // Number of entries in the labels array.
char* labelFileData = NULL; // Buffer holding the complete collection of label strings.

// Open the syslog to report messages for "object_detection"
openlog("object_detection", LOG_PID | LOG_CONS, LOG_USER);

args_t args;
if (!parseArgs(argc, argv, &args)) {
syslog(LOG_ERR, "%s: Could not parse arguments", __func__);
Expand Down
2 changes: 0 additions & 2 deletions remote-debug-example/app/remote_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <syslog.h>

int main(void) {
openlog("remote_debug", LOG_PID | LOG_CONS, LOG_USER);

/* Intentional error: attempting to modify a string literal */
char* message = "Hello World!";
message[0] = 'h'; // This will cause a segmentation fault
Expand Down
3 changes: 0 additions & 3 deletions reproducible-package/app/reproducible_package.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
* This main function writes "Hello Reproducible World" to the syslog.
*/
int main(void) {
/* Open the syslog to report messages for "reproducible_package" */
openlog("reproducible_package", LOG_PID | LOG_CONS, LOG_USER);

/* Choose between { LOG_INFO, LOG_CRIT, LOG_WARN, LOG_ERR }*/
syslog(LOG_INFO, "Hello Reproducible World!");
}
1 change: 0 additions & 1 deletion using-opencv/app/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using namespace cv;

int main(void) {
openlog("opencv_app", LOG_PID | LOG_CONS, LOG_USER);
syslog(LOG_INFO, "Running OpenCV example with VDO as video source");
img_provider_t* image_provider = nullptr;
g_autoptr(GError) vdo_error = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
*
*/
void log_hello_world(void) {
/* Open the syslog to report messages for "hello_world" */
openlog("customlib_example", LOG_PID | LOG_CONS, LOG_USER);

/* Choose between { LOG_INFO, LOG_CRIT, LOG_WARN, LOG_ERR }*/
syslog(LOG_INFO, "Hello World!");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ int main(void) {
"/usr/local/packages/openssl_curl_example/localdata/www.example.com.txt",
NULL};

// Start logging
openlog(NULL, LOG_PID, LOG_USER);

// Log the curl and openssl library versions used in the code
curl_version_info_data* ver = curl_version_info(CURLVERSION_NOW);
syslog(LOG_INFO,
Expand Down
2 changes: 0 additions & 2 deletions vapix/app/vapix_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ static const char* read_property(const json_t* all_props, const char* prop_name)
}

int main(void) {
openlog(NULL, LOG_PID, LOG_USER);

syslog(LOG_INFO, "Curl version %s", curl_version_info(CURLVERSION_NOW)->version);
syslog(LOG_INFO, "Jansson version %s", JANSSON_VERSION);

Expand Down
4 changes: 0 additions & 4 deletions vdo-larod/app/vdo_larod.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
#include "vdo-frame.h"
#include "vdo-types.h"

#define APP_NAME "vdo_larod"

volatile sig_atomic_t running = 1;

static void shutdown(int status) {
Expand All @@ -78,8 +76,6 @@ int main(int argc, char** argv) {
model_provider_t* model_provider = NULL;
model_tensor_output_t* tensor_outputs = NULL;

openlog(APP_NAME, LOG_PID | LOG_CONS, LOG_USER);

// Stop main loop at signal
signal(SIGTERM, shutdown);
signal(SIGINT, shutdown);
Expand Down
3 changes: 0 additions & 3 deletions vdo-opencl-filtering/app/vdo_cl_filter_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,6 @@ int main(void) {
const char* kernel_name = FILTER_SOBEL_3X3;
enum render_area cur_render_area = HALF_AREA;

/* Open connection to syslog */
openlog(NULL, LOG_PID, LOG_USER);

/* Set up VDO */
settings = vdo_map_new();
vdo_map_set_uint32(settings, "format", VDO_FORMAT_YUV);
Expand Down
2 changes: 0 additions & 2 deletions vdostream/app/vdoencodeclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ int main(int argc, char* argv[]) {
gchar* output_file = "/dev/null";
FILE* dest_f = NULL;

openlog(NULL, LOG_PID, LOG_USER);

GOptionEntry options[] = {
{"format",
't',
Expand Down
1 change: 0 additions & 1 deletion web-server-using-fastcgi/app/fastcgi_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ static int fcgi_run(void) {
char* socket_path = NULL;
int status;

openlog(NULL, LOG_PID, LOG_DAEMON);
socket_path = getenv(FCGI_SOCKET_NAME);

if (!socket_path) {
Expand Down