Commit 5e595126 authored by Alessandro Rubini's avatar Alessandro Rubini

general: remove now-unused <ppsi/diag.h>

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 353ad297
......@@ -2,7 +2,6 @@
* Alessandro Rubini for CERN, 2013 -- LGPL 2.1 or later
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "bare-i386.h"
static int bare_time_get(TimeInternal *t)
......
......@@ -11,7 +11,6 @@
#include <linux/if_ether.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "posix.h"
void posix_main_loop(struct pp_instance *ppi)
......
......@@ -17,7 +17,6 @@
#include <arpa/inet.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "posix.h"
/* posix_recv_msg uses recvmsg for timestamp query */
......
......@@ -12,7 +12,6 @@
#include <errno.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "posix.h"
CONST_VERBOSITY int pp_diag_verbosity = 0;
......
......@@ -8,7 +8,6 @@
#include <time.h>
#include <sys/timex.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
static void clock_fatal_error(char *context)
{
......
......@@ -6,7 +6,6 @@
#include <syscon.h>
#include <pps_gen.h>
#include <minic.h>
#include <ppsi/diag.h>
#include <pps_gen.h>
#include <softpll_ng.h>
#include <ptpd_netif.h>
......
......@@ -6,7 +6,6 @@
#define __WRPC_H
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include <hw/memlayout.h>
/*
* These are the functions provided by the various bare files
......
......@@ -2,7 +2,6 @@
* Alessandro Rubini for CERN, 2011 -- public domain
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
unsigned long pp_global_flags; /* This is the only "global" file in ppsi */
......
/*
* Alessandro Rubini for CERN, 2011 -- public domain
*/
#ifndef __PPSI_DIAG_H__
#define __PPSI_DIAG_H__
#include <ppsi/ppsi.h>
/*
* The diagnostic functions
*
* error gets an integer, the other ones two strings (so we can
* strerror(errno) together with the explanation. Avoid diag_printf if
* possible, for size reasons, but here it is anyways.
*/
static inline void pp_diag_error(struct pp_instance *ppi, int err)
{
pp_printf("ERR for %p: %i\n", ppi, err);
}
static inline void pp_diag_error_str2(struct pp_instance *ppi,
char *s1, char *s2)
{
pp_printf("ERR for %p: %s %s\n", ppi, s1, s2);
}
#endif /* __PPSI_DIAG_H__ */
......@@ -4,7 +4,6 @@
/* Socket interface for bare Linux */
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "bare-linux.h"
/* FIXME: which socket we receive and send with? */
......
......@@ -7,7 +7,6 @@
* It must also clear the BSS as I'm too lazy to do that in asm
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "bare-linux.h"
......
......@@ -2,7 +2,6 @@
* Alessandro Rubini for CERN, 2013 -- LGPL 2.1 or later
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "bare-linux.h"
static int bare_time_get(TimeInternal *t)
......
......@@ -4,7 +4,6 @@
#define CONFIG_PPSI_RUNTIME_VERBOSITY 1
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#define CMD_LINE_SEPARATOR {"", ""}
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "wr-api.h"
int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "wr-api.h"
#include "../proto-standard/common-fun.h"
......
#include <arch/arch.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "wr-api.h"
#define WR_SYNC_NSEC 1
......
......@@ -5,7 +5,6 @@
#include <limits.h>
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
void int64_to_TimeInternal(Integer64 bigint, TimeInternal *internal)
{
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
/* Flag Field bits symbolic names (table 57, pag. 151) */
#define FFB_LI61 0x01
......
......@@ -3,7 +3,6 @@
* Based on PTPd project v. 2.1.0 (see AUTHORS for details)
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "common-fun.h"
static void *__align_pointer(void *p)
......
......@@ -7,7 +7,6 @@
#define __COMMON_FUN_H
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
/* Contains all functions common to more than one state */
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "common-fun.h"
static void Integer64_display(const char *label, Integer64 *bigint)
......
......@@ -3,7 +3,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
/*
* This file deals with opening and closing an instance. The channel
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
void pp_init_clock(struct pp_instance *ppi)
{
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
/*
* Fault troubleshooting. Now only prints an error messages and comes back to
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
/*
* Initializes network and other stuff
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "common-fun.h"
int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "common-fun.h"
int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen)
......
......@@ -4,7 +4,6 @@
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "common-fun.h"
int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
......
......@@ -2,7 +2,6 @@
* Alessandro Rubini for CERN, 2013 -- GNU LGPL v2.1 or later
*/
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include <ppsi/diag-macros.h>
#define N(n) [n] = #n
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment