device.h (271127) | device.h (282513) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 417 unchanged lines hidden (view full) --- 426 len = vsnprintf(NULL, 0, fmt, aq); 427 va_end(aq); 428 429 vsnprintf(p, len+1, fmt, ap); 430 431 return p; 432} 433 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 417 unchanged lines hidden (view full) --- 426 len = vsnprintf(NULL, 0, fmt, aq); 427 va_end(aq); 428 429 vsnprintf(p, len+1, fmt, ap); 430 431 return p; 432} 433 |
434static inline char *kasprintf(gfp_t gfp, const char *fmt, ...) 435{ 436 va_list ap; 437 char *p; | 434char *kasprintf(gfp_t, const char *, ...); |
438 | 435 |
439 va_start(ap, fmt); 440 p = kvasprintf(gfp, fmt, ap); 441 va_end(ap); 442 443 return p; 444} 445 446 | |
447#endif /* _LINUX_DEVICE_H_ */ | 436#endif /* _LINUX_DEVICE_H_ */ |