History log of /openbmc/hiomapd/common.c (Results 1 – 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7841c825 25-Oct-2024 Ninad Palsule <ninad@linux.ibm.com>

common: Log errors to stderr

As per syslog.h, all error values are less than LOG_WARNING hence we
should be writing those to stderr instead of stdout.

Change-Id: I294dc8ccc9a3cd1c675b0ce733243c6821

common: Log errors to stderr

As per syslog.h, all error values are less than LOG_WARNING hence we
should be writing those to stderr instead of stdout.

Change-Id: I294dc8ccc9a3cd1c675b0ce733243c68215a654d
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>

show more ...


# ca5eda80 05-Feb-2020 Andrew Jeffery <andrew@aj.id.au>

mbox_log_console(): Add explicit fflush() for stdout

stdout is line-buffered by default while stderr is not. Additionally the
logging infra was switching between stderr and stdout based on the
sever

mbox_log_console(): Add explicit fflush() for stdout

stdout is line-buffered by default while stderr is not. Additionally the
logging infra was switching between stderr and stdout based on the
severity of the message. Make sure we flush stdout if necessary.

Change-Id: I9649e1aa20dca6220cdd5ca91f2bab2a99b24aac
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


Revision tags: v2.1.1
# 4fe996c2 26-Feb-2018 Andrew Jeffery <andrew@aj.id.au>

misc: Replace license blurb with kernel-style SPDX markers

This was roughly achieved by the following shell script:

$ git ls-files |
grep '\.[ch]p*$' |
while read F; do EXT=${F##*.}; cat spdx.$EX

misc: Replace license blurb with kernel-style SPDX markers

This was roughly achieved by the following shell script:

$ git ls-files |
grep '\.[ch]p*$' |
while read F; do EXT=${F##*.}; cat spdx.$EXT <(sed '/^\/\*$/,/^ \*\/$/d' $F) > ${F}.tmp; mv ${F}.tmp $F; done

With the following context:

$ cat spdx.c
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
$ cat spdx.h
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (C) 2018 IBM Corp. */
$ ls -l spdx.*
-rw-r--r-- 1 andrew andrew 71 Feb 27 12:02 spdx.c
lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.cpp -> spdx.c
-rw-r--r-- 1 andrew andrew 77 Feb 27 12:02 spdx.h
lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.hpp -> spdx.h

The `sed` invocation catches a lot of function documentation, so the
hunks were manually added to avoid removing information that we want to
keep.

Change-Id: I63e49ca2593aa0db0568c7a63bfdead388642e76
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


# 44ac078b 25-Feb-2018 Andrew Jeffery <andrew@aj.id.au>

common: Improve readability and utility of MSG_*() macros

Ensures we can't dereference NULL if a logger hasn't been set, and
cleans up the MSG_*() macros for readability.

Change-Id: I9808d8fe767261

common: Improve readability and utility of MSG_*() macros

Ensures we can't dereference NULL if a logger hasn't been set, and
cleans up the MSG_*() macros for readability.

Change-Id: I9808d8fe7672613e90c705686d1eaf1e2edef38a
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


# 7a3814b0 22-Feb-2018 Andrew Jeffery <andrew@aj.id.au>

common: Ensure helpers are endian-safe

The specification states that all multibyte values communicated via mbox
are little-endian[0]. Do the conversions in the helpers to enforce this
property.

[0]

common: Ensure helpers are endian-safe

The specification states that all multibyte values communicated via mbox
are little-endian[0]. Do the conversions in the helpers to enforce this
property.

[0] https://github.com/openbmc/mboxbridge/blob/master/Documentation/mbox_protocol.md#information

Change-Id: I9f96281c439fd666cb1c9ae643454569d61f7a81
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


# 90b92fe4 05-May-2017 Ratan Gupta <ratagupt@in.ibm.com>

Make the code compatible with c++ compiler

if we write "int i;" in header file, c compiler treats
as a tentative definition while c++ compiler
treats as a definition.
so when two cpp file includes t

Make the code compatible with c++ compiler

if we write "int i;" in header file, c compiler treats
as a tentative definition while c++ compiler
treats as a definition.
so when two cpp file includes the same header file
then during linking time compiler says that there are
multiple definitions.

so to overcome this problem we are declaring it as extern
and defining it in the corresponding c file.

Change-Id: I91378c4c587414edf35f8313f2497268be36e2f4
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...


Revision tags: v2.1.0
# 41f211bc 11-Apr-2017 Andrew Jeffery <andrew@aj.id.au>

common: Move get_dev_mtd() to mtd.c

Allows tests to link in alternative implementations of get_dev_mtd()
without losing other functions available in common.c.

Change-Id: I606a83aa9bc59b5fbab1fb11ee

common: Move get_dev_mtd() to mtd.c

Allows tests to link in alternative implementations of get_dev_mtd()
without losing other functions available in common.c.

Change-Id: I606a83aa9bc59b5fbab1fb11ee1e2574c7f6d127
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


# 314929b4 13-Oct-2016 Cyril Bur <cyril.bur@au1.ibm.com>

First commit