@@ -79,7 +79,7 @@ impl Device {
79
79
///
80
80
/// Callers must ensure that `ptr` is valid, non-null, and has a non-zero reference count,
81
81
/// i.e. it must be ensured that the reference count of the C `struct device` `ptr` points to
82
- /// can't drop to zero, for the duration of this function call and the entire duration when the
82
+ /// can't drop to zero, for the duration of this function callhe entire duration when the
83
83
/// returned reference exists.
84
84
pub unsafe fn as_ref < ' a > ( ptr : * mut bindings:: device ) -> & ' a Self {
85
85
// SAFETY: Guaranteed by the safety requirements of the function.
@@ -176,7 +176,7 @@ impl Device {
176
176
/// `KERN_*`constants, for example, `KERN_CRIT`, `KERN_ALERT`, etc.
177
177
#[ cfg_attr( not( CONFIG_PRINTK ) , allow( unused_variables) ) ]
178
178
unsafe fn printk ( & self , klevel : & [ u8 ] , msg : fmt:: Arguments < ' _ > ) {
179
- // SAFETY: `klevel` is null-terminated and one of the kernel constants. `self.as_raw`
179
+ // SAFETY: `klevel` is null-terminatedne of the kernel constants. `self.as_raw`
180
180
// is valid because `self` is valid. The "%pA" format string expects a pointer to
181
181
// `fmt::Arguments`, which is what we're passing as the last argument.
182
182
#[ cfg( CONFIG_PRINTK ) ]
@@ -228,7 +228,7 @@ macro_rules! dev_printk {
228
228
/// Equivalent to the kernel's `dev_emerg` macro.
229
229
///
230
230
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
231
- /// [`core::fmt`] and [`alloc::format!`] .
231
+ /// [`core::fmt`].
232
232
///
233
233
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
234
234
///
@@ -253,7 +253,7 @@ macro_rules! dev_emerg {
253
253
/// Equivalent to the kernel's `dev_alert` macro.
254
254
///
255
255
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
256
- /// [`core::fmt`] and [`alloc::format!`] .
256
+ /// [`core::fmt`].
257
257
///
258
258
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
259
259
///
@@ -278,7 +278,7 @@ macro_rules! dev_alert {
278
278
/// Equivalent to the kernel's `dev_crit` macro.
279
279
///
280
280
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
281
- /// [`core::fmt`] and [`alloc::format!`] .
281
+ /// [`core::fmt`].
282
282
///
283
283
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
284
284
///
@@ -303,7 +303,7 @@ macro_rules! dev_crit {
303
303
/// Equivalent to the kernel's `dev_err` macro.
304
304
///
305
305
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
306
- /// [`core::fmt`] and [`alloc::format!`] .
306
+ /// [`core::fmt`].
307
307
///
308
308
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
309
309
///
@@ -328,7 +328,7 @@ macro_rules! dev_err {
328
328
/// Equivalent to the kernel's `dev_warn` macro.
329
329
///
330
330
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
331
- /// [`core::fmt`] and [`alloc::format!`] .
331
+ /// [`core::fmt`].
332
332
///
333
333
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
334
334
///
@@ -353,7 +353,7 @@ macro_rules! dev_warn {
353
353
/// Equivalent to the kernel's `dev_notice` macro.
354
354
///
355
355
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
356
- /// [`core::fmt`] and [`alloc::format!`] .
356
+ /// [`core::fmt`].
357
357
///
358
358
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
359
359
///
@@ -378,7 +378,7 @@ macro_rules! dev_notice {
378
378
/// Equivalent to the kernel's `dev_info` macro.
379
379
///
380
380
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
381
- /// [`core::fmt`] and [`alloc::format!`] .
381
+ /// [`core::fmt`].
382
382
///
383
383
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
384
384
///
@@ -403,7 +403,7 @@ macro_rules! dev_info {
403
403
/// Equivalent to the kernel's `dev_dbg` macro, except that it doesn't support dynamic debug yet.
404
404
///
405
405
/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
406
- /// [`core::fmt`] and [`alloc::format!`] .
406
+ /// [`core::fmt`].
407
407
///
408
408
/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
409
409
///
0 commit comments