ASoC: wm2000: Correct register size
[linux-2.6/btrfs-unstable.git] / drivers / staging / csr / csr_formatted_io.c
blob7213cc8fb5779647c2cbd799307a44643dceaf0b
1 /*****************************************************************************
3 (c) Cambridge Silicon Radio Limited 2010
4 All rights reserved and confidential information of CSR
6 Refer to LICENSE.txt included with this source for details
7 on the license terms.
9 *****************************************************************************/
10 #include <linux/kernel.h>
11 #include "csr_formatted_io.h"
13 s32 CsrSnprintf(char *dest, size_t n, const char *fmt, ...)
15 s32 r;
16 va_list args;
17 va_start(args, fmt);
18 r = vsnprintf(dest, n, fmt, args);
19 va_end(args);
21 if (dest && (n > 0))
23 dest[n - 1] = '\0';
26 return r;