printk.h revision 278866
1278866Shselasky/*- 2278866Shselasky * Copyright (c) 2010 Isilon Systems, Inc. 3278866Shselasky * Copyright (c) 2010 iX Systems, Inc. 4278866Shselasky * Copyright (c) 2010 Panasas, Inc. 5278866Shselasky * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6278866Shselasky * All rights reserved. 7278866Shselasky * 8278866Shselasky * Redistribution and use in source and binary forms, with or without 9278866Shselasky * modification, are permitted provided that the following conditions 10278866Shselasky * are met: 11278866Shselasky * 1. Redistributions of source code must retain the above copyright 12278866Shselasky * notice unmodified, this list of conditions, and the following 13278866Shselasky * disclaimer. 14278866Shselasky * 2. Redistributions in binary form must reproduce the above copyright 15278866Shselasky * notice, this list of conditions and the following disclaimer in the 16278866Shselasky * documentation and/or other materials provided with the distribution. 17278866Shselasky * 18278866Shselasky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19278866Shselasky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20278866Shselasky * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21278866Shselasky * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22278866Shselasky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23278866Shselasky * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24278866Shselasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25278866Shselasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26278866Shselasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27278866Shselasky * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28278866Shselasky */ 29278866Shselasky 30278866Shselasky#ifndef _FBSD_PRINTK_H_ 31278866Shselasky#define _FBSD_PRINTK_H_ 32278866Shselasky 33278866Shselasky/* GID printing macros */ 34278866Shselasky#define GID_PRINT_FMT "%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x" 35278866Shselasky#define GID_PRINT_ARGS(gid_raw) htons(((u16 *)gid_raw)[0]), htons(((u16 *)gid_raw)[1]),\ 36278866Shselasky htons(((u16 *)gid_raw)[2]), htons(((u16 *)gid_raw)[3]),\ 37278866Shselasky htons(((u16 *)gid_raw)[4]), htons(((u16 *)gid_raw)[5]),\ 38278866Shselasky htons(((u16 *)gid_raw)[6]), htons(((u16 *)gid_raw)[7]) 39278866Shselasky 40278866Shselasky#endif /* _FBSD_PRINTK_H */ 41