mISDN: Help to identify L2 issues
Subsystems (2)
PATCH 16/28 mISDN: Help to identify L2 issues
With multiple cards is hard to figure out which port cause trouble. Now we have the informations in the log output.
Signed-off-by Karsten Keil <[email protected]>
--- drivers/isdn/mISDN/core.c | 16 +++++++++ drivers/isdn/mISDN/layer2.c | 75 ++++++++++++++++++++++++------------------ include/linux/mISDNif.h | 3 +- 3 files changed, 61 insertions(+), 33 deletions(-)
drivers/isdn/mISDN/core.c +16 -0
@@ -355,6 +355,22 @@ mISDN_unregister_Bprotocol(struct Bprotocol *bp) }EXPORT_SYMBOL (mISDN_unregister_Bprotocol); +static const char *msg_no_channel ="<no channel>" ; +static const char *msg_no_stack ="<no stack>" ; +static const char *msg_no_stackdev ="<no stack device>" ; + +const char *mISDNDevName4ch (struct mISDNchannel *ch) +{ +if (!ch) +return msg_no_channel; +if (!ch->st) +return msg_no_stack; +if (!ch->st->dev) +return msg_no_stackdev; +return dev_name (&ch->st->dev->dev); +}; +EXPORT_SYMBOL (mISDNDevName4ch); +static int mISDNInit (void ) {
drivers/isdn/mISDN/layer2.c +43 -32
205 lines not on this page · raw message
include/linux/mISDNif.h +2 -1
@@ -37,7 +37,7 @@*/ #define MISDN_MAJOR_VERSION 1#define MISDN_MINOR_VERSION 1 -#define MISDN_RELEASE 27 +#define MISDN_RELEASE 28/* primitives for information exchange * generell format
@@ -598,6 +598,7 @@ static inline struct mISDNdevice *dev_to_mISDN(struct device *dev)extern void set_channel_address (struct mISDNchannel *,u_int ,u_int );extern void mISDN_clock_update (struct mISDNclock *,int ,struct timeval *);extern unsigned short mISDN_clock_get (void ); +extern const char *mISDNDevName4ch (struct mISDNchannel *);#endif /* __KERNEL__ */ #endif /* mISDNIF_H */
Signature · 1 line
1.7.3.4