mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-27 13:33:40 +00:00
9af869c414
This introduces strlcat, which provides a safer interface than strncat. It never copies more than its size bytes, including the terminating nul. In addition, it never reads past dest[size - 1], even if dest is not nul-terminated. This also removes the stub for dwc3 now that we have a proper implementation. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
16 lines
381 B
C
16 lines
381 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/**
|
|
* linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter Header
|
|
*
|
|
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
|
|
*
|
|
* Authors: Kishon Vijay Abraham I <kishon@ti.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef __DWC3_LINUX_COMPAT__
|
|
#define __DWC3_LINUX_COMPAT__
|
|
|
|
#define dev_WARN(dev, format, arg...) debug(format, ##arg)
|
|
|
|
#endif
|