printk.h revision 278866
1284677Sdim/*- 2284677Sdim * Copyright (c) 2010 Isilon Systems, Inc. 3284677Sdim * Copyright (c) 2010 iX Systems, Inc. 4284677Sdim * Copyright (c) 2010 Panasas, Inc. 5284677Sdim * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6284677Sdim * All rights reserved. 7284677Sdim * 8284677Sdim * Redistribution and use in source and binary forms, with or without 9284677Sdim * modification, are permitted provided that the following conditions 10284677Sdim * are met: 11284677Sdim * 1. Redistributions of source code must retain the above copyright 12284677Sdim * notice unmodified, this list of conditions, and the following 13284677Sdim * disclaimer. 14284677Sdim * 2. Redistributions in binary form must reproduce the above copyright 15284677Sdim * notice, this list of conditions and the following disclaimer in the 16284677Sdim * documentation and/or other materials provided with the distribution. 17284677Sdim * 18284677Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19284677Sdim * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20284677Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21284677Sdim * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22284677Sdim * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23284677Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24284677Sdim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25284677Sdim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26284677Sdim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27284677Sdim * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28284677Sdim */ 29284677Sdim 30284677Sdim#ifndef _FBSD_PRINTK_H_ 31284677Sdim#define _FBSD_PRINTK_H_ 32284677Sdim 33284677Sdim/* GID printing macros */ 34284677Sdim#define GID_PRINT_FMT "%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x" 35284677Sdim#define GID_PRINT_ARGS(gid_raw) htons(((u16 *)gid_raw)[0]), htons(((u16 *)gid_raw)[1]),\ 36284677Sdim htons(((u16 *)gid_raw)[2]), htons(((u16 *)gid_raw)[3]),\ 37284677Sdim htons(((u16 *)gid_raw)[4]), htons(((u16 *)gid_raw)[5]),\ 38284677Sdim htons(((u16 *)gid_raw)[6]), htons(((u16 *)gid_raw)[7]) 39284677Sdim 40284677Sdim#endif /* _FBSD_PRINTK_H */ 41284677Sdim