drivers: Consistently make LOG_PREFIX the first item after #includes.

This commit is contained in:
Uwe Hermann 2017-07-21 18:20:14 +02:00
parent b15ff1c92a
commit f272d7ddc0
5 changed files with 8 additions and 6 deletions

View File

@ -30,6 +30,8 @@
#include <libsigrok/libsigrok.h> #include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h" #include "libsigrok-internal.h"
#define LOG_PREFIX "asix-sigma"
/* /*
* Triggers are not working in this implementation. Stop claiming * Triggers are not working in this implementation. Stop claiming
* support for the feature which effectively is not available, until * support for the feature which effectively is not available, until
@ -38,8 +40,6 @@
*/ */
#define ASIX_SIGMA_WITH_TRIGGER 0 #define ASIX_SIGMA_WITH_TRIGGER 0
#define LOG_PREFIX "asix-sigma"
#define USB_VENDOR 0xa600 #define USB_VENDOR 0xa600
#define USB_PRODUCT 0xa000 #define USB_PRODUCT 0xa000
#define USB_DESCRIPTION "ASIX SIGMA" #define USB_DESCRIPTION "ASIX SIGMA"

View File

@ -26,6 +26,7 @@
#include "libsigrok-internal.h" #include "libsigrok-internal.h"
#define LOG_PREFIX "hung-chang-dso-2100" #define LOG_PREFIX "hung-chang-dso-2100"
#define MAX_RETRIES 4 #define MAX_RETRIES 4
#define NUM_CHANNELS 2 #define NUM_CHANNELS 2

View File

@ -26,11 +26,11 @@
#include <libsigrok/libsigrok.h> #include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h" #include "libsigrok-internal.h"
#define LOG_PREFIX "motech-lps-30x"
SR_PRIV int lps_process_status(struct sr_dev_inst *sdi, int stat); SR_PRIV int lps_process_status(struct sr_dev_inst *sdi, int stat);
SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char *fmt, ...); SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char *fmt, ...);
#define LOG_PREFIX "motech-lps-30x"
#define LINELEN_MAX 50 /**< Max. line length for requests */ #define LINELEN_MAX 50 /**< Max. line length for requests */
#define REQ_TIMEOUT_MS 250 /**< Timeout [ms] for single request. */ #define REQ_TIMEOUT_MS 250 /**< Timeout [ms] for single request. */

View File

@ -20,14 +20,14 @@
#ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_PROTOCOL_H #ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_PROTOCOL_H
#define LIBSIGROK_HARDWARE_SYSCLK_LWLA_PROTOCOL_H #define LIBSIGROK_HARDWARE_SYSCLK_LWLA_PROTOCOL_H
#define LOG_PREFIX "sysclk-lwla"
#include <stdint.h> #include <stdint.h>
#include <libusb.h> #include <libusb.h>
#include <glib.h> #include <glib.h>
#include <libsigrok/libsigrok.h> #include <libsigrok/libsigrok.h>
#include <libsigrok-internal.h> #include <libsigrok-internal.h>
#define LOG_PREFIX "sysclk-lwla"
/* Maximum configurable sample count limit. /* Maximum configurable sample count limit.
* Due to compression, there is no meaningful hardware limit the driver * Due to compression, there is no meaningful hardware limit the driver
* could report. So this value is less than 2^64-1 for no reason other * could report. So this value is less than 2^64-1 for no reason other

View File

@ -31,6 +31,7 @@
#include "protocol_wrappers.h" #include "protocol_wrappers.h"
#define LOG_PREFIX "yokogawa-dlm" #define LOG_PREFIX "yokogawa-dlm"
#define MAX_INSTRUMENT_VERSIONS 8 #define MAX_INSTRUMENT_VERSIONS 8
#define RECEIVE_BUFFER_SIZE 4096 #define RECEIVE_BUFFER_SIZE 4096