Define the WARNING macro only once.
This commit is contained in:
parent
872f5a594d
commit
a4247b7505
@ -24,11 +24,6 @@
|
||||
#include "mares_nemo.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "mares_puck.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "oceanic_atom2.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "oceanic_veo250.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "oceanic_vtpro.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -25,11 +25,6 @@
|
||||
#include "reefnet_sensus.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -25,11 +25,6 @@
|
||||
#include "reefnet_sensuspro.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -25,12 +25,6 @@
|
||||
#include "reefnet_sensusultra.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
|
||||
device_status_t
|
||||
test_dump_memory_dives (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "suunto_d9.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_sdm (const char* name)
|
||||
{
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
#include "suunto_eon.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -3,11 +3,6 @@
|
||||
#include "suunto.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,12 +24,6 @@
|
||||
#include "suunto_vyper2.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
|
||||
device_status_t
|
||||
test_dump_sdm (const char* name)
|
||||
{
|
||||
|
||||
@ -25,11 +25,6 @@
|
||||
#include "suunto_vyper.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
device_status_t
|
||||
test_dump_sdm (const char* name, unsigned int delay)
|
||||
{
|
||||
|
||||
@ -3,12 +3,6 @@
|
||||
#include "uwatec_aladin.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -24,12 +24,6 @@
|
||||
#include "uwatec_memomouse.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* name, const char* filename)
|
||||
{
|
||||
|
||||
@ -26,12 +26,6 @@
|
||||
#include "uwatec_smart.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
|
||||
device_status_t
|
||||
test_dump_memory (const char* filename)
|
||||
{
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -28,11 +28,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct mares_nemo_parser_t mares_nemo_parser_t;
|
||||
|
||||
struct mares_nemo_parser_t {
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -33,11 +33,6 @@
|
||||
|
||||
#define MAXRETRIES 2
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -29,11 +29,6 @@
|
||||
#include "array.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define PAGESIZE 0x10
|
||||
|
||||
#define RB_LOGBOOK_DISTANCE(a,b,l) ringbuffer_distance (a, b, l->rb_logbook_begin, l->rb_logbook_end)
|
||||
|
||||
@ -33,11 +33,6 @@
|
||||
|
||||
#define MAXRETRIES 2
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -33,11 +33,6 @@
|
||||
|
||||
#define MAXRETRIES 2
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -31,11 +31,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -27,11 +27,6 @@
|
||||
#include "units.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define SAMPLE_DEPTH_ADJUST 13
|
||||
|
||||
typedef struct reefnet_sensus_parser_t reefnet_sensus_parser_t;
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -29,11 +29,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct reefnet_sensuspro_parser_t reefnet_sensuspro_parser_t;
|
||||
|
||||
struct reefnet_sensuspro_parser_t {
|
||||
|
||||
@ -31,11 +31,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -29,11 +29,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct reefnet_sensusultra_parser_t reefnet_sensusultra_parser_t;
|
||||
|
||||
struct reefnet_sensusultra_parser_t {
|
||||
|
||||
@ -28,11 +28,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define MAXRETRIES 2
|
||||
|
||||
#define SZ_VERSION 0x04
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -28,11 +28,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define SKIP 4
|
||||
|
||||
typedef struct suunto_d9_parser_t suunto_d9_parser_t;
|
||||
|
||||
@ -31,11 +31,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -29,11 +29,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -27,11 +27,6 @@
|
||||
#include "units.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct suunto_solution_parser_t suunto_solution_parser_t;
|
||||
|
||||
struct suunto_solution_parser_t {
|
||||
|
||||
@ -27,11 +27,6 @@
|
||||
#include "units.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct suunto_spyder_parser_t suunto_spyder_parser_t;
|
||||
|
||||
struct suunto_spyder_parser_t {
|
||||
|
||||
@ -34,11 +34,6 @@
|
||||
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define HDR_DEVINFO_VYPER 0x24
|
||||
#define HDR_DEVINFO_SPYDER 0x16
|
||||
#define HDR_DEVINFO_BEGIN (HDR_DEVINFO_SPYDER)
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -27,11 +27,6 @@
|
||||
#include "units.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct suunto_vyper_parser_t suunto_vyper_parser_t;
|
||||
|
||||
struct suunto_vyper_parser_t {
|
||||
|
||||
@ -26,6 +26,8 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define WARNING(expr) message ("%s:%d: %s\n", __FILE__, __LINE__, expr)
|
||||
|
||||
int message (const char* fmt, ...);
|
||||
|
||||
void message_set_logfile (const char* filename);
|
||||
|
||||
@ -32,11 +32,6 @@
|
||||
#include "checksum.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -31,11 +31,6 @@
|
||||
#include "array.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -27,11 +27,6 @@
|
||||
#include "utils.h"
|
||||
#include "array.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
typedef struct uwatec_memomouse_parser_t uwatec_memomouse_parser_t;
|
||||
|
||||
struct uwatec_memomouse_parser_t {
|
||||
|
||||
@ -30,11 +30,6 @@
|
||||
#include "array.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define EXITCODE(rc) \
|
||||
( \
|
||||
rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \
|
||||
|
||||
@ -28,11 +28,6 @@
|
||||
#include "units.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define WARNING(expr) \
|
||||
{ \
|
||||
message ("%s:%d: %s\n", __FILE__, __LINE__, expr); \
|
||||
}
|
||||
|
||||
#define NBITS 8
|
||||
#define NELEMENTS(x) ( sizeof(x) / sizeof((x)[0]) )
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user