History

can: bcm: fix indention and other minor style issues

Oliver Hartkopp committed 10 years ago

Commit 95acb491 parent 05ca5271 file · +12 −14Browse files

Unified · Split

net/can/bcm.c+12−14
@@ -184,42 +184,40 @@ static int bcm_proc_show(struct seq_file *m, void *v) · 183 unmodified lines
184 continue;184 continue;
185 185
186 seq_printf(m, "rx_op: %03X %-5s ",186 seq_printf(m, "rx_op: %03X %-5s ",
187 op->can_id, bcm_proc_getifname(ifname, op->ifindex));187 op->can_id, bcm_proc_getifname(ifname, op->ifindex));
188 seq_printf(m, "[%u]%c ", op->nframes,188 seq_printf(m, "[%u]%c ", op->nframes,
189 (op->flags & RX_CHECK_DLC)?'d':' ');189 (op->flags & RX_CHECK_DLC) ? 'd' : ' ');
190 if (op->kt_ival1.tv64)190 if (op->kt_ival1.tv64)
191 seq_printf(m, "timeo=%lld ",191 seq_printf(m, "timeo=%lld ",
192 (long long)192 (long long)ktime_to_us(op->kt_ival1));
193 ktime_to_us(op->kt_ival1));
194 193
195 if (op->kt_ival2.tv64)194 if (op->kt_ival2.tv64)
196 seq_printf(m, "thr=%lld ",195 seq_printf(m, "thr=%lld ",
197 (long long)196 (long long)ktime_to_us(op->kt_ival2));
198 ktime_to_us(op->kt_ival2));
199 197
200 seq_printf(m, "# recv %ld (%ld) => reduction: ",198 seq_printf(m, "# recv %ld (%ld) => reduction: ",
201 op->frames_filtered, op->frames_abs);199 op->frames_filtered, op->frames_abs);
202 200
203 reduction = 100 - (op->frames_filtered * 100) / op->frames_abs;201 reduction = 100 - (op->frames_filtered * 100) / op->frames_abs;
204 202
205 seq_printf(m, "%s%ld%%\n",203 seq_printf(m, "%s%ld%%\n",
206 (reduction == 100)?"near ":"", reduction);204 (reduction == 100) ? "near " : "", reduction);
207 }205 }
208 206
209 list_for_each_entry(op, &bo->tx_ops, list) {207 list_for_each_entry(op, &bo->tx_ops, list) {
210 208
211 seq_printf(m, "tx_op: %03X %s [%u] ",209 seq_printf(m, "tx_op: %03X %s [%u] ",
212 op->can_id,210 op->can_id,
213 bcm_proc_getifname(ifname, op->ifindex),211 bcm_proc_getifname(ifname, op->ifindex),
214 op->nframes);212 op->nframes);
215 213
216 if (op->kt_ival1.tv64)214 if (op->kt_ival1.tv64)
217 seq_printf(m, "t1=%lld ",215 seq_printf(m, "t1=%lld ",
218 (long long) ktime_to_us(op->kt_ival1));216 (long long)ktime_to_us(op->kt_ival1));
219 217
220 if (op->kt_ival2.tv64)218 if (op->kt_ival2.tv64)
221 seq_printf(m, "t2=%lld ",219 seq_printf(m, "t2=%lld ",
222 (long long) ktime_to_us(op->kt_ival2));220 (long long)ktime_to_us(op->kt_ival2));
223 221
224 seq_printf(m, "# sent %ld\n", op->frames_abs);222 seq_printf(m, "# sent %ld\n", op->frames_abs);
225 }223 }
@@ -282,7 +280,7 @@ static void bcm_can_tx(struct bcm_op *op) · 56 unmodified lines
282 /* reached last frame? */280 /* reached last frame? */
283 if (op->currframe >= op->nframes)281 if (op->currframe >= op->nframes)
284 op->currframe = 0;282 op->currframe = 0;
285 out:283out:
286 dev_put(dev);284 dev_put(dev);
287}285}
288 286

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t