log.c (ade994f4f6c8c3ef4c3bfc2d02166262fb9d089c) log.c (7db7d9f369a47e1a46f93c320b45cb89e81723e7)
1// SPDX-License-Identifier: GPL-2.0
1/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors:
2 *
3 * Marek Lindner
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public
7 * License as published by the Free Software Foundation.
8 *

--- 162 unchanged lines hidden (view full) ---

171 spin_unlock_bh(&debug_log->lock);
172
173 if (!error)
174 return i;
175
176 return error;
177}
178
2/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors:
3 *
4 * Marek Lindner
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
9 *

--- 162 unchanged lines hidden (view full) ---

172 spin_unlock_bh(&debug_log->lock);
173
174 if (!error)
175 return i;
176
177 return error;
178}
179
179static __poll_t batadv_log_poll(struct file *file, poll_table *wait)
180static unsigned int batadv_log_poll(struct file *file, poll_table *wait)
180{
181 struct batadv_priv *bat_priv = file->private_data;
182 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
183
184 poll_wait(file, &debug_log->queue_wait, wait);
185
186 if (!batadv_log_empty(debug_log))
187 return POLLIN | POLLRDNORM;

--- 42 unchanged lines hidden ---
181{
182 struct batadv_priv *bat_priv = file->private_data;
183 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
184
185 poll_wait(file, &debug_log->queue_wait, wait);
186
187 if (!batadv_log_empty(debug_log))
188 return POLLIN | POLLRDNORM;

--- 42 unchanged lines hidden ---