lib.c (e175072f377047e28e399c5c661e39e69722f35b) | lib.c (e1447d8d8da5ceea60dca027e78274e6ea9b660e) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 136 unchanged lines hidden (view full) --- 145 case 0x25: 146 return EPROTO; 147 148 default: 149 return ENOSYS; 150 } 151} 152EXPORT_SYMBOL(bt_to_errno); | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 136 unchanged lines hidden (view full) --- 145 case 0x25: 146 return EPROTO; 147 148 default: 149 return ENOSYS; 150 } 151} 152EXPORT_SYMBOL(bt_to_errno); |
153 154int bt_printk(const char *level, const char *format, ...) 155{ 156 struct va_format vaf; 157 va_list args; 158 int r; 159 160 va_start(args, format); 161 162 vaf.fmt = format; 163 vaf.va = &args; 164 165 r = printk("%sBluetooth: %pV\n", level, &vaf); 166 167 va_end(args); 168 169 return r; 170} 171EXPORT_SYMBOL(bt_printk); |
|