* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2015, Intel Corporation.
+ * Copyright (c) 2011, 2017, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
{
int rc;
char buf[64];
- int len = snprintf(buf, 64, "%d", value);
+ int len = scnprintf(buf, sizeof(buf), "%d", value);
int fd = dbg_open_ctlhandle(param);
if (fd < 0)
int bytes;
ssize_t bytes_written;
- bytes = snprintf(out, sizeof(out),
+ bytes = scnprintf(out, sizeof(out),
"%08x:%08x:%u.%u%s:%u.%06llu:%u:%u:%u:"
"(%s:%u:%s()) %s",
hdr->ph_subsys, hdr->ph_mask,