9p.h (6dc6472581f693b5fc95aebedf67b4960fb85cf0) | 9p.h (d5c003b4d1690e666dbab02bc8e705947baa848c) |
---|---|
1/* 2 * include/net/9p/9p.h 3 * 4 * 9P protocol definitions. 5 * 6 * Copyright (C) 2005 by Latchesar Ionkov <lucho@ionkov.net> 7 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 8 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> --- 47 unchanged lines hidden (view full) --- 56}; 57 58extern unsigned int p9_debug_level; 59 60#define P9_DPRINTK(level, format, arg...) \ 61do { \ 62 if ((p9_debug_level & level) == level) \ 63 printk(KERN_NOTICE "-- %s (%d): " \ | 1/* 2 * include/net/9p/9p.h 3 * 4 * 9P protocol definitions. 5 * 6 * Copyright (C) 2005 by Latchesar Ionkov <lucho@ionkov.net> 7 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 8 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> --- 47 unchanged lines hidden (view full) --- 56}; 57 58extern unsigned int p9_debug_level; 59 60#define P9_DPRINTK(level, format, arg...) \ 61do { \ 62 if ((p9_debug_level & level) == level) \ 63 printk(KERN_NOTICE "-- %s (%d): " \ |
64 format , __FUNCTION__, task_pid_nr(current) , ## arg); \ | 64 format , __func__, task_pid_nr(current) , ## arg); \ |
65} while (0) 66 67#define PRINT_FCALL_ERROR(s, fcall) P9_DPRINTK(P9_DEBUG_ERROR, \ 68 "%s: %.*s\n", s, fcall?fcall->params.rerror.error.len:0, \ 69 fcall?fcall->params.rerror.error.str:""); 70 71#else 72#define P9_DPRINTK(level, format, arg...) do { } while (0) 73#define PRINT_FCALL_ERROR(s, fcall) do { } while (0) 74#endif 75 76#define P9_EPRINTK(level, format, arg...) \ 77do { \ 78 printk(level "9p: %s (%d): " \ | 65} while (0) 66 67#define PRINT_FCALL_ERROR(s, fcall) P9_DPRINTK(P9_DEBUG_ERROR, \ 68 "%s: %.*s\n", s, fcall?fcall->params.rerror.error.len:0, \ 69 fcall?fcall->params.rerror.error.str:""); 70 71#else 72#define P9_DPRINTK(level, format, arg...) do { } while (0) 73#define PRINT_FCALL_ERROR(s, fcall) do { } while (0) 74#endif 75 76#define P9_EPRINTK(level, format, arg...) \ 77do { \ 78 printk(level "9p: %s (%d): " \ |
79 format , __FUNCTION__, task_pid_nr(current), ## arg); \ | 79 format , __func__, task_pid_nr(current), ## arg); \ |
80} while (0) 81 82/** 83 * enum p9_msg_t - 9P message types 84 * @P9_TVERSION: version handshake request 85 * @P9_RVERSION: version handshake response 86 * @P9_TAUTH: request to establish authentication channel 87 * @P9_RAUTH: response with authentication information --- 513 unchanged lines hidden --- | 80} while (0) 81 82/** 83 * enum p9_msg_t - 9P message types 84 * @P9_TVERSION: version handshake request 85 * @P9_RVERSION: version handshake response 86 * @P9_TAUTH: request to establish authentication channel 87 * @P9_RAUTH: response with authentication information --- 513 unchanged lines hidden --- |