summaryrefslogtreecommitdiff
path: root/str.h
blob: 7b8916cb11ab7ea598fe8771f542f203d904bf80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef STR_H
#define STR_H

#include "built_in.h"

extern size_t strlcpy(char *dest, const char *src, size_t size);
extern int slprintf(char *dst, size_t size, const char *fmt, ...)  __check_format_printf(3, 4);
extern int slprintf_nocheck(char *dst, size_t size, const char *fmt, ...);
extern char *strtrim_right(char *p, char c);
extern noinline void *xmemset(void *s, int c, size_t n);

#endif /* STR_H */
class='right'>2016-05-13 19:39:14 -0400 commit0c7f77afb7f6e74af899584ac672c8d9e63058b0 (patch) treef322aba97a7ab1685bca07b14e071a5206f7bf79 parent321aebb880d2bfdf9cff503f57207e930aee6b1d (diff)
IB/hfi1: Ignore non-temperature warnings on a downed link
QSFP modules can raise an interrupt to inform us of expected conditions while the link is down, such as RX power low. Actively ignore these conditions when the link is down as they only add reporting noise. Continue reporting conditions that are valid at all times, such as temperature alarms and warnings. Reviewed-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat